Compare commits

...

3 Commits

Author SHA1 Message Date
Ibrahima G. Coulibaly
4cb1d3cfd5 fix: mime.types 2025-07-26 01:56:36 +01:00
Ibrahima G. Coulibaly
06a278d3cb chore: remove mime.types 2025-07-26 01:26:51 +01:00
Ibrahima G. Coulibaly
2eb319ee1b fix: #224 2025-07-26 01:24:46 +01:00
2 changed files with 3 additions and 6 deletions

View File

@ -10,9 +10,10 @@ RUN npm run build
FROM nginx:alpine FROM nginx:alpine
COPY mime.types /etc/nginx/mime.types
COPY --from=build /app/dist /usr/share/nginx/html COPY --from=build /app/dist /usr/share/nginx/html
RUN sed -i 's/application\/javascript.*js;/application\/javascript js 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 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 EXPOSE 80

View File

@ -1,4 +0,0 @@
types {
application/javascript mjs;
}