Try setting config for dual deployment

This commit is contained in:
2024-12-17 13:32:41 +00:00
parent 32675c41bc
commit 36635224e8
7 changed files with 155 additions and 14 deletions

View File

@@ -13,4 +13,7 @@ COPY nginx/default.conf /etc/nginx/conf.d/
RUN rm -rf /usr/share/nginx/html/*
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80
COPY ./entrypoint.sh ./entrypoint.sh
RUN chmod +x ./entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]
CMD ["nginx", "-g", "daemon off;"]