This commit is contained in:
Paul Johnson 2025-10-29 00:47:09 +00:00 committed by GitHub
commit 55946dd9bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View file

@ -12,6 +12,9 @@ RUN pnpm build
# production stage
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
COPY nginx.conf /etc/nginx/templates/default.conf.template
ENV PORT=80
EXPOSE $PORT
CMD ["nginx", "-g", "daemon off;"]

View file

@ -1,5 +1,5 @@
server {
listen 80;
listen ${PORT};
server_name localhost;
root /usr/share/nginx/html;
index index.html;