Skip to content

Commit

Permalink
Add docker files for php server
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenpieters committed Nov 26, 2023
1 parent 7c8fbdf commit 1b2131f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions data/templates/php/Dockerfile
@@ -0,0 +1,7 @@
FROM php:8.2-cli

WORKDIR /var/www/html

EXPOSE 80

CMD ["php", "-S", "0.0.0.0:80"]
5 changes: 5 additions & 0 deletions data/templates/php/run
@@ -0,0 +1,5 @@
# build
docker build -t phpserver:latest .

# run
docker run -p 8080:80 -v ${PWD}:/var/www/html phpserver:latest

0 comments on commit 1b2131f

Please sign in to comment.