Created
July 14, 2017 06:47
-
-
Save appkr/5fc2b3ede7d475549fbd44e5603a65e7 to your computer and use it in GitHub Desktop.
Dockerfile for static website
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
| # ------------------------------------------------------------------------------ | |
| # Dockerfile for a static website | |
| # ------------------------------------------------------------------------------ | |
| FROM nginx:alpine | |
| # ------------------------------------------------------------------------------ | |
| # Add source to the docker image | |
| # ------------------------------------------------------------------------------ | |
| ADD ./build /usr/share/nginx/html | |
| # ------------------------------------------------------------------------------ | |
| # Set working directory | |
| # ------------------------------------------------------------------------------ | |
| WORKDIR /usr/share/nginx/html | |
| # ------------------------------------------------------------------------------ | |
| # Expose port | |
| # ------------------------------------------------------------------------------ | |
| EXPOSE 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment