Makefile 938 B

123456789101112131415161718192021222324252627282930
  1. VERSION="1.0.2"
  2. docker-build:
  3. @-docker rmi docker-nginx-php-fpm:latest
  4. docker build -t docker-nginx-php-fpm:latest ./
  5. docker-export:
  6. @-rm ./build/docker-nginx-php-fpm.tar
  7. docker save docker-nginx-php-fpm:latest > ./build/docker-nginx-php-fpm.tar
  8. docker-import:
  9. @-docker rmi docker-nginx-php-fpm:latest
  10. docker load < ./build/docker-nginx-php-fpm.tar
  11. docker-test:
  12. docker run --rm \
  13. --network host \
  14. --name docker-nginx-php-fpm-test \
  15. -v /etc/timezone:/etc/timezone:ro \
  16. -it docker-nginx-php-fpm:latest
  17. docker-push:
  18. docker tag docker-nginx-php-fpm:latest vladimirok5959/nginx-php-fpm:${VERSION}
  19. docker tag docker-nginx-php-fpm vladimirok5959/nginx-php-fpm:latest
  20. docker login
  21. docker push vladimirok5959/nginx-php-fpm:${VERSION}
  22. docker push vladimirok5959/nginx-php-fpm:latest
  23. docker rmi vladimirok5959/nginx-php-fpm:${VERSION}
  24. docker rmi vladimirok5959/nginx-php-fpm:latest
  25. docker rmi docker-nginx-php-fpm:latest