Makefile 458 B

123456789101112131415161718192021222324252627
  1. PORT=80
  2. run:
  3. poetry run python render.py
  4. min:
  5. poetry run htmlmin _build/index.html _build/index.html
  6. poetry:
  7. pip3 install -q poetry
  8. poetry-install:
  9. poetry install -q
  10. prod: poetry poetry-install run min
  11. ci: poetry-install run
  12. docker-build:
  13. docker build -t opengaming/osgameclones .
  14. docker-run:
  15. -docker rm -f osgameclones-site
  16. docker run -d -p${PORT}:80 --name osgameclones-site opengaming/osgameclones
  17. .PHONY:
  18. run prod docker-build docker-run