dockerfile
Dockerfile
Structure
FROM ...
MAINTAINER ...
ENV ...
ADD ...
RUN ...
ENTRYPOINT ["..."]
Comments: Begin with a #
# test
# test
# ??? _localscripts?
ADD <filename> <dest>
Ex:
ADD script.tar ./
# Copy from to, from can be a directory
COPY <from> <to>
# CMD - list of command option send to the entrypoint, first option is $1
CMD ["noop"]
# set environment variable
ENV <name> <value>
Ex:
ENV LANG fr_CA.UTF-8
# entrypoint?
ENTRYPOINT ["script.sh"]
# open a port
EXPOSE
EXPOSE 9000
# set origin image
FROM <imagename>:<version>
Ex:
FROM debian:8
# set maintainer email of this image
MAINTAINER <email>
Ex:
FROM progysm@gmail.com
# run a command
RUN <command>