Skip to content

Commit ce491a5

Browse files
marfillasterjaviereguiluz
authored andcommitted
Add Dockerfile
1 parent a027d5f commit ce491a5

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

Dockerfile

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM python:2-stretch as builder
2+
3+
WORKDIR /www
4+
5+
COPY ./_build/.requirements.txt _build/
6+
7+
RUN pip install pip==9.0.1 wheel==0.29.0 \
8+
&& pip install -r _build/.requirements.txt
9+
10+
COPY . /www
11+
12+
RUN make -C _build html
13+
14+
FROM nginx:latest
15+
16+
COPY --from=builder /www/_build/html /usr/share/nginx/html
17+
18+

README.markdown

+17
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,20 @@ Platform.sh
1919
-----------
2020

2121
Pull requests are automatically built by [Platform.sh](https://platform.sh).
22+
23+
Docker
24+
------
25+
26+
If you have Docker 17.05+ installed, you can build an image.
27+
28+
```
29+
$ docker build . -t symfony-docs
30+
```
31+
32+
The built image may be served locally on [http//:127.0.0.1](http//:127.0.0.1) by running the command below.
33+
34+
```
35+
$ docker run --rm -p80:80 symfony-docs
36+
```
37+
38+

0 commit comments

Comments
 (0)