123
This commit is contained in:
@ -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
|
||||
|
||||
@ -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;"]
|
||||
|
||||
Reference in New Issue
Block a user