Skip to content

docker-compose autobuild #10131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM python:2-stretch as builder

WORKDIR /www

COPY ./_build/.requirements.txt _build/

RUN pip install pip==9.0.1 wheel==0.29.0 \
&& pip install -r _build/.requirements.txt

COPY . /www

RUN make -C _build html

FROM nginx:latest

COPY --from=builder /www/_build/html /usr/share/nginx/html


17 changes: 17 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,20 @@ Platform.sh
-----------

Pull requests are automatically built by [Platform.sh](https://platform.sh).

Docker
------

If you have Docker 17.05+ installed, you can build an image.

```
$ docker build . -t symfony-docs
```

The built image may be served locally on [http//:127.0.0.1](http//:127.0.0.1) by running the command below.

```
$ docker run --rm -p80:80 symfony-docs
```