Fixing unexpanded CMD variable with correct defaulting behavior. (#478)

Co-authored-by: Omar <omar@hemmali.com>
This commit is contained in:
ohemmali 2022-04-01 03:12:03 -04:00 committed by GitHub
parent c686ca0379
commit 4d1f09f184
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -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
@ -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}"]