Guest User

Untitled

a guest
May 22nd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. image: docker:latest
  2.  
  3. stages:
  4. ...
  5.  
  6. build:
  7. stage: build
  8. script:
  9. - chmod +x start.sh
  10. - docker build -t MY_IMAGE:TAG .
  11.  
  12. ...
  13.  
  14. FROM php:7.2-fpm-alpine3.7
  15.  
  16. RUN ... (the big RUN chunk from the nginx Dockerfile linked below)
  17.  
  18. RUN ... (my custom stuff)
  19.  
  20. EXPOSE 80
  21.  
  22. STOPSIGNAL SIGTERM
  23.  
  24. COPY nginx.conf /etc/nginx/nginx.conf
  25. COPY start.sh /usr/local/bin/start.sh
  26.  
  27. CMD ["start.sh"]
  28.  
  29. php-fpm -D
  30. nginx -g 'daemon off;'
Add Comment
Please, Sign In to add comment