You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,21 +12,25 @@ Options:
12
12
-`--env env` builds the image
13
13
with configuration stored in config-{env} folder
14
14
-`--php version` selects php version (builds from the {version}-fpm-alpine base).
15
-
-`--customize dir` the name of the folder under `custom` to build from the resulting image. A Dockerfile should be present in `custom/{dir}`. See example folder for a starter template. By default all folders under custom will be built.
15
+
-`--customize dir` the name of the folder under `custom` to build from the resulting image.
16
+
A Dockerfile should be present in `custom/{dir}`. See example folder for a starter template.
17
+
By default all folders under custom will be built.
16
18
17
-
The script will automatically build your custom images by placing your Dockerfiles in the `custom` folder. Your image will have the name of the folder it is placed in, tagged with latest. E.g. for the example folder the image will be built as `example:latest`.
19
+
The script will automatically build your custom images by placing your Dockerfiles in the `custom` folder.
20
+
Your image will have the name of the folder it is placed in, tagged with latest.
21
+
E.g. for the example folder the image will be built as `example:latest`.
18
22
19
23
Example:
20
24
21
-
`./build.sh phpdevbase:latest --env dev --php 7.1.8 --customize phpdev`
25
+
`./build.sh phpdev:base --env dev --php 7.2 --customize phpdev`
22
26
23
27
Then you can start your container with the built image:
24
28
25
-
`docker run -d -p 31287:80 --name dev-container phpdev:latest`
29
+
`docker run -d -p 8007:80 --name dev-container phpdev:latest`
0 commit comments