Skip to content

Commit

Permalink
build time port config
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal-Delange committed Mar 8, 2024
1 parent afbfb95 commit e9175a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ RUN pnpm deploy --filter=app-builder --prod /prod/app-builder

FROM base AS app-builder
ENV NODE_ENV=production
ENV PORT=8080
ENV PORT=${PORT:-8080}
RUN apt-get update && apt-get install -y curl
COPY --from=build /prod/app-builder /prod/app-builder
WORKDIR /prod/app-builder
EXPOSE 8080
EXPOSE $PORT
CMD [ "pnpm", "start"]
4 changes: 2 additions & 2 deletions Dockerfile_local
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ RUN pnpm deploy --filter=app-builder --prod /prod/app-builder

FROM base AS app-builder
ENV NODE_ENV=production
ENV PORT=8080
ENV PORT=${PORT:-8080}
RUN apt-get update && apt-get install -y curl
COPY --from=build /prod/app-builder /prod/app-builder
WORKDIR /prod/app-builder
EXPOSE 8080
EXPOSE $PORT
CMD [ "pnpm", "start"]

0 comments on commit e9175a0

Please sign in to comment.