Skip to content

Commit

Permalink
🔧 config: Allow to set default $PORT in Dockerfile at build time.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Jan 31, 2025
1 parent 0e66efb commit d20018b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ARG DEBIAN_VERSION=11
ARG PORT=3000


# NOTE Build stage
Expand Down Expand Up @@ -101,7 +102,7 @@ ENV PATH="/home/nonroot/node/bin"

ENV \

Check warning on line 103 in Dockerfile

View workflow job for this annotation

GitHub Actions / Continuous integration (build compose) (ubuntu-latest)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$PORT' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 103 in Dockerfile

View workflow job for this annotation

GitHub Actions / Continuous integration (build image) (ubuntu-latest)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$PORT' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
ROOT_URL="http://localhost" \
PORT="3000" \
PORT="${PORT}" \
MONGO_URL="mongodb://localhost:27017/meteor" \
MONGO_OPLOG_URL=""

Expand Down

0 comments on commit d20018b

Please sign in to comment.