This commit is contained in:
Ferran Aran Domingo 2023-11-01 13:04:40 -06:00 committed by GitHub
commit d7046eacf7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 2 deletions

View file

@ -13,5 +13,7 @@ RUN pnpm build
FROM nginxinc/nginx-unprivileged:stable-alpine AS production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
COPY startup.sh /docker-entrypoint.d/startup.sh
ENV PORT 80
EXPOSE ${PORT}
CMD ["nginx", "-g", "daemon off;"]