Skip to content

Instantly share code, notes, and snippets.

@durvalrafael
Created July 27, 2017 05:12
Show Gist options
  • Select an option

  • Save durvalrafael/2e80af9e0dccbd28dc24a688d2793508 to your computer and use it in GitHub Desktop.

Select an option

Save durvalrafael/2e80af9e0dccbd28dc24a688d2793508 to your computer and use it in GitHub Desktop.
Dockerfile useful comands
FROM image[:tag] # Image that container will be up
RUN command # A bash script command
WORKDIR /app # Root Directory
COPY . /app # Copy current dir to inside container
VOLUME /app # Exposed volumes to outside container
EXPOSE 3000 # Exposed ports to outside container
CMD ["command", "args", ... ] # Run command after container`s up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment