File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change @@ -19,3 +19,20 @@ Platform.sh
1919-----------
2020
2121Pull 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+
You can’t perform that action at this time.
0 commit comments