Browse Source

README

master
Robin Thoni 7 years ago
parent
commit
4cd8ada9ab
1 changed files with 27 additions and 0 deletions
  1. 27
    0
      README.md

+ 27
- 0
README.md View File

@@ -0,0 +1,27 @@
1
+Docker for php 7.0 with apache 2.4
2
+==================================
3
+
4
+Why?
5
+----
6
+
7
+This docker file allows you to deploy a php 7.0 application in a couple of seconds on any server configuration. See docker help for more information.
8
+
9
+Usage
10
+-----
11
+
12
+Build the image:
13
+```shell
14
+git clone https://git.rthoni.com/robin.thoni/docker-php7.0-apache
15
+cd docker-php7.0-apache
16
+docker build -t php7.0-apache .
17
+```
18
+
19
+Run a container:
20
+```shell
21
+docker run -d -v /path/to/my/php/application/:/var/www/html -p 8000:80 --name=container-my-php-application-apache php7.0-apache
22
+```
23
+NB: /path/to/my/application/public/ folder must exists
24
+
25
+Browse:
26
+
27
+Open https://127.0.0.1:8000/ in a web browser.

Loading…
Cancel
Save