Skip to content

Instantly share code, notes, and snippets.

@ProProgrammer
Created August 25, 2018 06:31
Show Gist options
  • Save ProProgrammer/4399168ea3da59536ea025394c4d2fa4 to your computer and use it in GitHub Desktop.
Save ProProgrammer/4399168ea3da59536ea025394c4d2fa4 to your computer and use it in GitHub Desktop.
Dockerfile used for Dockerfile tutorial on Youtube
# 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;"]
@Sethupathi904
Copy link

ss

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment