Skip to content

Instantly share code, notes, and snippets.

@fl64
Created February 6, 2019 17:44
Show Gist options
  • Select an option

  • Save fl64/026c754dcdcd41a64eb90ec80dc46f71 to your computer and use it in GitHub Desktop.

Select an option

Save fl64/026c754dcdcd41a64eb90ec80dc46f71 to your computer and use it in GitHub Desktop.
nginx Dockerfile
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