blob: 985f5275f24a5f9c175490f9f0bf21edceb40413 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
FROM python:3.6.0 as builder
LABEL maintainer=clarkzjw<[email protected]>
RUN pip install virtualenv
COPY requirements.txt /app/requirements.txt
COPY bootstrap.py /app/bootstrap.py
RUN /app/bootstrap.py
ADD . /app
WORKDIR /app
RUN /bin/bash -c "source /app/.venv/bin/activate && make html"
FROM nginx:alpine
COPY --from=builder /app/_build/html /usr/share/nginx/html
|