Skip to content

Commit 0ff84ec

Browse files
committed
fix: expose PORT env variable if supplied
1 parent 6526d36 commit 0ff84ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# latest supported node version when this Dockerfile was written
22
ARG NODE_VERSION=22.12.0-alpine
33
ARG APP_DIR=/usr/src/parse
4+
ARG PORT=1337
45

56
# Builder stage
67
FROM node:${NODE_VERSION} AS builder
@@ -26,6 +27,6 @@ COPY --from=builder ${APP_DIR}/public ./public
2627

2728
VOLUME ["${APP_DIR}/cloud", "${APP_DIR}/logs"]
2829

29-
EXPOSE 1337
30+
EXPOSE ${PORT}
3031

3132
CMD ["node", "index.js"]

0 commit comments

Comments
 (0)