Skip to content

Commit df1bd94

Browse files
committed
first commit
0 parents  commit df1bd94

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

build/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM phpmyadmin/phpmyadmin:5.0.2
2+
3+
RUN mkdir /volume
4+
RUN chmod -R 777 /volume
5+
6+
RUN mkdir /script
7+
RUN chmod -R 777 /script
8+
9+
ADD script/run_server_php /script/run_server_php
10+
CMD ["/bin/bash", "-x", "/script/run_server_php" ]

build/script/run_server_php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cd /volume/backend/ && php -S 0.0.0.0:8000 -t public -l

readme

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
docker run -d --rm -p 8080:80 -p 8000:8000 --name backend -v %CD%/volume:/volume --ip 192.168.33.225 php_backend_dev
2+
docker exec -it backend

volume/backend/public/index.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?php
2+
echo "Hello world backend php test";

0 commit comments

Comments
 (0)