Created
August 25, 2018 06:31
-
-
Save ProProgrammer/4399168ea3da59536ea025394c4d2fa4 to your computer and use it in GitHub Desktop.
Dockerfile used for Dockerfile tutorial on Youtube
This file contains 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
# This Dockerfile is used for a youtube tutorial | |
# base image - nginx with tag "latest" | |
FROM nginx:latest | |
# Adding custom index.html hosted on Github Gist | |
ADD https://gist.githubusercontent.com/ProProgrammer/72a87394affb0a70f54af6e6353e3c45/raw/37fcecc6d43dba55effa9e1fa6f7183f349b9ba0/index.html /usr/share/nginx/html/ | |
# Adding read permissions to custom index.html | |
RUN chmod +r /usr/share/nginx/html/index.html | |
# 'nginx -g daemon off" will run as default command when any container is run that uses the image that was built using this Dockerfile" | |
CMD ["nginx", "-g", "daemon off;"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ss