1.8.0 : servir les assets du pack (img/ dans l'image Docker, MIME jpg/gif)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
perco
2026-06-12 00:22:27 +02:00
co-authored by Claude Fable 5
parent c769880303
commit 231e4d3da3
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -3,5 +3,6 @@ WORKDIR /app
COPY index.html server.js ./ COPY index.html server.js ./
COPY css ./css COPY css ./css
COPY js ./js COPY js ./js
COPY img ./img
EXPOSE 80 EXPOSE 80
CMD ["node", "server.js"] CMD ["node", "server.js"]
+2
View File
@@ -20,6 +20,8 @@ const MIME = {
".js": "text/javascript; charset=utf-8", ".js": "text/javascript; charset=utf-8",
".json": "application/json; charset=utf-8", ".json": "application/json; charset=utf-8",
".png": "image/png", ".png": "image/png",
".jpg": "image/jpeg",
".gif": "image/gif",
}; };
/* ---------- Stockage ---------- */ /* ---------- Stockage ---------- */