Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Commit

Permalink
Merge pull request #19 from jrasell/fix-dockerfile-small
Browse files Browse the repository at this point in the history
Update Dockerfiles to use ENTRYPOINT correctly and env var version
  • Loading branch information
jrasell authored Aug 1, 2019
2 parents 496ecfb + 344d37b commit b6ccb1d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ RUN buildDeps=' \
' \
set -x \
&& apk --no-cache add $buildDeps ca-certificates \
&& wget -O sherpa https://github.com/jrasell/sherpa/releases/download/v0.0.1/sherpa_0.0.1_linux_amd64 \
&& wget -O sherpa https://github.com/jrasell/sherpa/releases/download/v${SHERPA_VERSION}/sherpa_${SHERPA_VERSION}_linux_amd64 \
&& chmod +x /usr/bin/sherpa \
&& apk del $buildDeps \
&& echo "Build complete."

CMD ["sherpa", "--help"]
ENTRYPOINT ["sherpa"]

CMD ["--help"]
4 changes: 3 additions & 1 deletion Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ RUN \
&& chmod +x /usr/bin/sherpa \
&& echo "Build complete."

CMD ["sherpa", "--help"]
ENTRYPOINT ["sherpa"]

CMD ["--help"]

0 comments on commit b6ccb1d

Please sign in to comment.