Skip to content

Instantly share code, notes, and snippets.

@finchd
Created April 20, 2018 00:07
Show Gist options
  • Select an option

  • Save finchd/98c24a4e0d2b1e56064a9f0d10a1cbb7 to your computer and use it in GitHub Desktop.

Select an option

Save finchd/98c24a4e0d2b1e56064a9f0d10a1cbb7 to your computer and use it in GitHub Desktop.
Every allowed Dockerfile VERB

Dockerfile

FROM #must be first line, can have 2+ though?

MAINTAINER <[email protected]>

USER

WORKDIR

ARG

ONBUID

STOPSIGNAL

HEALTHCHECK

SHELL

VOLUME

LABEL

ENV var value ENV var=value

ADD from to-file ADD ["from", "to-file"] #from can be a URL

COPY from-file to-file #files only COPY ["from-file", "to-file"]

EXPOSE

CMD ["exe","param1","param2"] CMD [param1","param2"] #implies running entrypoint CMD "shell command"

RUN "/bin/sh -c shell command" #ouput state becomes next layer of docker image. RUN ["exe","param1","param2"]

ENTRYPOINT ["exe","param1","parma2"] ENTRYPOINT shell command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment