We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acf639e commit e829a11Copy full SHA for e829a11
Dockerfile
@@ -26,6 +26,9 @@ RUN chown -R nobody.nobody /run && \
26
# Setup document root
27
RUN mkdir -p /var/www/html
28
29
+# Make the document root a volume
30
+VOLUME /var/www/html
31
+
32
# Switch to use a non-root user from here on
33
USER nobody
34
README.md
@@ -36,3 +36,7 @@ Start the Docker container:
36
docker run -p 80:8080 trafex/alpine-nginx-php7
37
38
See the PHP info on http://localhost, or the static html page on http://localhost/test.html
39
40
+Or mount your own code to be served by PHP-FPM & Nginx
41
42
+ docker run -p 80:8080 -v ~/my-codebase:/var/www/html trafex/alpine-nginx-php7
0 commit comments