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
+5-11Lines changed: 5 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,23 +12,17 @@ Options:
12
12
-`--env` builds the image
13
13
with configuration stored in config-{env} folder
14
14
-`--php` selects php version (builds from the {version}-fpm-alpine base).
15
+
-`--customize folder` the name of the folder under `custom` to build from the resulting image. By default all folders under custom will be built.
16
+
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`.
15
18
16
19
Example:
17
20
18
-
`./build.sh devimage:latest --env dev --php 7.1.8`
21
+
`./build.sh phpdevbase:latest --env dev --php 7.1.8 --customize phpdev`
19
22
20
23
Then you can start your container with the built image:
21
24
22
-
`docker run -d -p 31287:80 --name dev-container devimage:latest`
23
-
24
-
Or base your images on it (Dockerfile):
25
-
26
-
FROM devimage:latest
27
-
28
-
ENV SERVER_ROOT /var/www/public
29
-
ENV APP_ENV dev
30
-
31
-
EXPOSE 80
25
+
`docker run -d -p 31287:80 --name dev-container phpdev:latest`
0 commit comments