1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #16806 from aidanhs/aphs-split-docs-dockerfiles

Don't put dockerfiles in one continuous code block
This commit is contained in:
moxiegirl 2015-10-07 13:40:19 -07:00
commit 4c1540c8d2

View file

@ -1166,6 +1166,10 @@ or a signal name in the format SIGNAME, for instance SIGKILL.
## Dockerfile examples
Below you can see some examples of Dockerfile syntax. If you're interested in
something more realistic, take a look at the list of [Dockerization examples](/examples/).
```
# Nginx
#
# VERSION 0.0.1
@ -1175,7 +1179,9 @@ or a signal name in the format SIGNAME, for instance SIGKILL.
LABEL Description="This image is used to start the foobar executable" Vendor="ACME Products" Version="1.0"
RUN apt-get update && apt-get install -y inotify-tools nginx apache2 openssh-server
```
```
# Firefox over VNC
#
# VERSION 0.3
@ -1192,7 +1198,9 @@ or a signal name in the format SIGNAME, for instance SIGKILL.
EXPOSE 5900
CMD ["x11vnc", "-forever", "-usepw", "-create"]
```
```
# Multiple images example
#
# VERSION 0.1
@ -1207,4 +1215,4 @@ or a signal name in the format SIGNAME, for instance SIGKILL.
# You᾿ll now have two images, 907ad6c2736f with /bar, and 695d7793cbe4 with
# /oink.
```