Created
July 27, 2017 05:12
-
-
Save durvalrafael/2e80af9e0dccbd28dc24a688d2793508 to your computer and use it in GitHub Desktop.
Dockerfile useful comands
This file contains hidden or 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
| 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