cd: parametrize listen port

This commit is contained in:
FerranAD 2023-06-01 22:15:33 +02:00
parent 105b21badc
commit 4eaa75c843
No known key found for this signature in database
GPG key ID: 56A3E4EC9383E582
2 changed files with 19 additions and 2 deletions

View file

@ -10,5 +10,7 @@ RUN pnpm build
FROM nginx: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;"]