default.txt 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. RUN apt-get update && apt-get install -y software-properties-common\
  9. zsh curl wget git htop\
  10. unzip vim telnet
  11. RUN ["/bin/bash", "-c", "echo hello ${USER}"]
  12. CMD ["executable","param1","param2"]
  13. CMD command param1 param2
  14. EXPOSE 1337
  15. ENV myName="John Doe" myDog=Rex\ The\ Dog \
  16. myCat=fluffy
  17. ENV myName John Doe
  18. ENV myDog Rex The Dog
  19. ENV myCat fluffy
  20. ADD hom* /mydir/ # adds all files starting with "hom"
  21. ADD hom?.txt /mydir/ # ? is replaced with any single character
  22. COPY hom* /mydir/ # adds all files starting with "hom"
  23. COPY hom?.txt /mydir/ # ? is replaced with any single character
  24. ENTRYPOINT ["executable", "param1", "param2"]
  25. ENTRYPOINT command param1 param2
  26. VOLUME ["/data"]
  27. USER daemon
  28. LABEL com.example.key-with-value="foo"
  29. LABEL version="1.0"
  30. LABEL description="This text illustrates \
  31. that label-values can span multiple lines."
  32. WORKDIR /path/to/workdir
  33. ONBUILD ADD . /app/src