# Example instructions from https://docs.docker.com/reference/builder/ FROM ubuntu:14.04 MAINTAINER example@example.com ENV foo /bar WORKDIR ${foo} # WORKDIR /bar ADD . $foo # ADD . /bar COPY \$foo /quux # COPY $foo /quux ARG VAR=FOO RUN apt-get update && apt-get install -y software-properties-common\ zsh curl wget git htop\ unzip vim telnet RUN ["/bin/bash", "-c", "echo hello ${USER}"] CMD ["executable","param1","param2"] CMD command param1 param2 EXPOSE 1337 ENV myName="John Doe" myDog=Rex\ The\ Dog \ myCat=fluffy ENV myName John Doe ENV myDog Rex The Dog ENV myCat fluffy ADD hom* /mydir/ # adds all files starting with "hom" ADD hom?.txt /mydir/ # ? is replaced with any single character COPY hom* /mydir/ # adds all files starting with "hom" COPY hom?.txt /mydir/ # ? is replaced with any single character COPY --from=foo / . ENTRYPOINT ["executable", "param1", "param2"] ENTRYPOINT command param1 param2 VOLUME ["/data"] USER daemon LABEL com.example.label-with-value="foo" LABEL version="1.0" LABEL description="This text illustrates \ that label-values can span multiple lines." WORKDIR /path/to/workdir ONBUILD ADD . /app/src STOPSIGNAL SIGKILL HEALTHCHECK --retries=3 cat /health SHELL ["/bin/bash", "-c"]