Created
February 6, 2019 17:44
-
-
Save fl64/026c754dcdcd41a64eb90ec80dc46f71 to your computer and use it in GitHub Desktop.
nginx Dockerfile
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 alpine:latest | |
| EXPOSE 80 | |
| EXPOSE 443 | |
| RUN apk add nginx | |
| RUN mkdir -p /run/nginx && mkdir -p /var/www | |
| COPY nginx.conf /etc/nginx/nginx.conf | |
| COPY index.html /var/www | |
| CMD ["nginx", "-g", "daemon off; env xxx=1;"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment