8000 minor #10131 docker-compose autobuild (marfillaster) · symfony/symfony-docs@a6f4a2b · GitHub
[go: up one dir, main page]

Skip to content

Commit a6f4a2b

Browse files
committed
minor #10131 docker-compose autobuild (marfillaster)
This PR was submitted for the master branch but it was merged into the 2.8 branch instead (closes #10131). Discussion ---------- docker-compose autobuild docker-compose - local setup 127.0.0.1:8000 - autobuild using watchman Requirements: - docker-compose 1.10.0+ and latest docker engine How to run: docker-compose up Commits ------- ce491a5 Add Dockerfile
2 parents a027d5f + ce491a5 commit a6f4a2b

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

Dockerfile

Lines changed: 18 additions & 0 deletions
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

Lines changed: 17 additions & 0 deletions
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)
0