Dockerfile 897 B

12345678910111213141516171819202122232425262728
  1. # Use osixia/light-baseimage
  2. # https://github.com/osixia/docker-light-baseimage
  3. FROM osixia/light-baseimage:alpine-0.1.9
  4. # Install multiple process stack, nginx and php7.0-fpm and clean apt-get files
  5. # https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/add-multiple-process-stack
  6. RUN apk update \
  7. && /container/tool/add-multiple-process-stack \
  8. && apk add \
  9. nginx \
  10. php7-fpm \
  11. && rm -rf /var/cache/apk/*
  12. # Add service directory to /container/service
  13. ADD service /container/service
  14. # Use baseimage install-service script
  15. # https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/install-service
  16. RUN /container/tool/install-service
  17. # Add default env directory
  18. ADD environment /container/environment/99-default
  19. # Set /var/lib/nginx/html/ in a data volume
  20. VOLUME /var/lib/nginx/html/
  21. # Expose default http and https ports
  22. EXPOSE 80 443