Skip to content

Instantly share code, notes, and snippets.

@Crell

Crell/Dockerfile Secret

Created June 30, 2022 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Crell/a15b15028c0a470ca45edbd8a31f7ffd to your computer and use it in GitHub Desktop.
Save Crell/a15b15028c0a470ca45edbd8a31f7ffd to your computer and use it in GitHub Desktop.
FROM php:8.1.0RC3-cli
WORKDIR /usr/src/myapp
configure:
docker-compose run --rm php81 nice php doc-base/configure.php
# This version has better debug output.
configure-details:
docker-compose run --rm php81 nice php doc-base/configure.php --enable-xml-details
xhtml: configure
docker-compose run --rm php81 php -dmemory_limit=256M phd/render.php --docbook doc-base/.manual.xml --package PHP --format xhtml
web: configure
docker-compose run --rm php81 php -dmemory_limit=256M phd/render.php --docbook doc-base/.manual.xml --package PHP --format php
server:
cd web-php && php -S localhost:8081 .router.php
shell:
docker-compose run --rm php81 bash
update:
cd doc-base && git pull
cd en && git pull
cd phd && git pull
cd web-php && git pull
clean:
docker-compose run --rm php81 rm -rf output/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment