Skip to content

Instantly share code, notes, and snippets.

@appkr
Created July 14, 2017 06:47
Show Gist options
  • Select an option

  • Save appkr/5fc2b3ede7d475549fbd44e5603a65e7 to your computer and use it in GitHub Desktop.

Select an option

Save appkr/5fc2b3ede7d475549fbd44e5603a65e7 to your computer and use it in GitHub Desktop.
Dockerfile for static website
# ------------------------------------------------------------------------------
# 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