Created
August 20, 2019 20:36
-
-
Save libert-xyz/c93865730c99ababda61cff2dea616ae to your computer and use it in GitHub Desktop.
Dockerfile to understand RUN , CMD and ENTRYPOINT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM alpine:3.10.1 | |
| RUN apk add --update / | |
| python3 / | |
| py-pip / | |
| curl | |
| ##Example CMD exec form | |
| #CMD ['python3','--version'] | |
| ###Example ENTRYPOINT exec form | |
| ENTRYPOINT ["echo"] | |
| CMD ["from CMD"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment