This commit is contained in:
2024-04-12 23:22:27 +03:00
parent c8dcf8844d
commit 04934c1916
2 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,6 @@ services:
dockerfile: ./nginx/Dockerfile
restart: unless-stopped
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./static:/static
depends_on:
- backend

View File

@ -7,5 +7,7 @@ RUN npm run build
FROM nginx:1.25.4-alpine
COPY --from=build /app/dist /usr/share/nginx/html
RUN rm /etc/nginx/conf.d/default.conf
COPY ./nginx.conf /etc/nginx/conf.d
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]