Skip to content

Instantly share code, notes, and snippets.

@hakaneroztekin
Last active June 12, 2022 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hakaneroztekin/dcf3f19b819eedf7e7b10eb043683a53 to your computer and use it in GitHub Desktop.
Save hakaneroztekin/dcf3f19b819eedf7e7b10eb043683a53 to your computer and use it in GitHub Desktop.
Dockerfile [docker in a nutshell]
# 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