Skip to content

Instantly share code, notes, and snippets.

@libert-xyz
Created August 20, 2019 20:36
Show Gist options
  • Select an option

  • Save libert-xyz/c93865730c99ababda61cff2dea616ae to your computer and use it in GitHub Desktop.

Select an option

Save libert-xyz/c93865730c99ababda61cff2dea616ae to your computer and use it in GitHub Desktop.
Dockerfile to understand RUN , CMD and ENTRYPOINT
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