finchd
4/20/2018 - 12:07 AM

Every allowed Dockerfile VERB

Every allowed Dockerfile VERB

# Dockerfile

FROM <base image> #must be first line, can have 2+ though?

MAINTAINER \<foo\@bar.com>

USER <in-container 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 <port>

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