diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -1,6 +1,22 @@ | |||
1 | FROM python:3.6.0 | 1 | FROM python:3.6.0 as builder |
2 | 2 | ||
3 | LABEL maintainer=clarkzjw<[email protected]> | ||
3 | 4 | ||
5 | RUN pip install virtualenv | ||
4 | 6 | ||
5 | FROM nginx | 7 | COPY requirements.txt /app/requirements.txt |
6 | 8 | ||
9 | COPY bootstrap.py /app/bootstrap.py | ||
10 | |||
11 | RUN /app/bootstrap.py | ||
12 | |||
13 | ADD . /app | ||
14 | |||
15 | WORKDIR /app | ||
16 | |||
17 | RUN /bin/bash -c "source /app/.venv/bin/activate && make html" | ||
18 | |||
19 | |||
20 | FROM nginx:alpine | ||
21 | |||
22 | COPY --from=builder /app/_build/html /usr/share/nginx/html | ||