default.txt 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Example instructions from https://docs.docker.com/reference/builder/
  2. FROM ubuntu:14.04
  3. MAINTAINER example@example.com
  4. ENV foo /bar
  5. WORKDIR ${foo} # WORKDIR /bar
  6. ADD . $foo # ADD . /bar
  7. COPY \$foo /quux # COPY $foo /quux
  8. ARG VAR=FOO
  9. RUN apt-get update && apt-get install -y software-properties-common\
  10. zsh curl wget git htop\
  11. unzip vim telnet
  12. RUN ["/bin/bash", "-c", "echo hello ${USER}"]
  13. CMD ["executable","param1","param2"]
  14. CMD command param1 param2
  15. EXPOSE 1337
  16. ENV myName="John Doe" myDog=Rex\ The\ Dog \
  17. myCat=fluffy
  18. ENV myName John Doe
  19. ENV myDog Rex The Dog
  20. ENV myCat fluffy
  21. ADD hom* /mydir/ # adds all files starting with "hom"
  22. ADD hom?.txt /mydir/ # ? is replaced with any single character
  23. COPY hom* /mydir/ # adds all files starting with "hom"
  24. COPY hom?.txt /mydir/ # ? is replaced with any single character
  25. COPY --from=foo / .
  26. ENTRYPOINT ["executable", "param1", "param2"]
  27. ENTRYPOINT command param1 param2
  28. VOLUME ["/data"]
  29. USER daemon
  30. LABEL com.example.label-with-value="foo"
  31. LABEL version="1.0"
  32. LABEL description="This text illustrates \
  33. that label-values can span multiple lines."
  34. WORKDIR /path/to/workdir
  35. ONBUILD ADD . /app/src
  36. STOPSIGNAL SIGKILL
  37. HEALTHCHECK --retries=3 cat /health
  38. SHELL ["/bin/bash", "-c"]