Dockerfile [docker in a nutshell]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# use ubuntu as a base image | |
FROM ubuntu | |
# add custom label | |
LABEL ARTICLE_NAME="docker in a nutshell" | |
# add environment variable | |
ENV PUBLISHING_AT=medium | |
# copy src directory from build context to my-app in container | |
COPY /src /my-app | |
# make my-app default directory for the upcoming commands | |
WORKDIR /my-app | |
# print contents | |
CMD ["ls", "-l"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment