Dockerfile 473 B

1234567891011121314151617181920
  1. # nginx
  2. #
  3. # VERSION 0.1
  4. FROM ronnicek/alpine:latest
  5. # Base packages
  6. RUN apk --update add nginx && \
  7. rm -rf /var/cache/apk/*
  8. # forward request and error logs to docker log collector
  9. RUN ln -sf /dev/stdout /var/log/nginx/access.log \
  10. && ln -sf /dev/stderr /var/log/nginx/error.log \
  11. && mkdir -p /run/nginx/ \
  12. && mkdir -p /var/lib/nginx/tmp/ \
  13. && chown nobody /var/lib/nginx && chown -R nobody /var/lib/nginx/tmp/
  14. EXPOSE 80 443
  15. CMD ["nginx", "-g", "daemon off;"]