From 2eb319ee1bc9b83d38e91690873bf9f10b636982 Mon Sep 17 00:00:00 2001 From: "Ibrahima G. Coulibaly" Date: Sat, 26 Jul 2025 01:24:46 +0100 Subject: [PATCH] fix: #224 --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 020f165..f88530d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,9 +10,10 @@ RUN npm run build FROM nginx:alpine -COPY mime.types /etc/nginx/mime.types - COPY --from=build /app/dist /usr/share/nginx/html + +RUN echo 'application/javascript mjs;' >> /etc/nginx/mime.types + RUN sed -i 's|index index.html index.htm;|index index.html index.htm;\n try_files $uri $uri/ /index.html;|' /etc/nginx/conf.d/default.conf EXPOSE 80