Skip to content

Commit

Permalink
Fixing unexpanded CMD variable with correct defaulting behavior. (#478)
Browse files Browse the repository at this point in the history
Co-authored-by: Omar <omar@hemmali.com>
  • Loading branch information
ohemmali and Omar authored Apr 1, 2022
1 parent c686ca0 commit 4d1f09f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ RUN apk add --no-cache \
ca-certificates

ENV GO111MODULE=on \
CGO_ENABLED=0 \
CONFIG_FILE=/app/config.yml
CGO_ENABLED=0

WORKDIR /src

Expand Down Expand Up @@ -41,4 +40,4 @@ USER blocky
WORKDIR /app

ENTRYPOINT ["/sbin/tini", "--"]
CMD ["/app/blocky","--config","$CONFIG_FILE"]
CMD ["sh", "-c", "/app/blocky --config ${CONFIG_FILE:-/app/config.yml}"]

0 comments on commit 4d1f09f

Please sign in to comment.