aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2018-01-10 20:45:07 +0800
committerclarkzjw <[email protected]>2018-01-10 20:45:07 +0800
commitc008c037facaf632dc9923bb2ecd4c9542c14c9d (patch)
tree05a612cc3a67f49e3d14138b2f0e062f153295e2 /Dockerfile
parentf26f6cd71cb436216ce6993ae640e89bbb26226a (diff)
downloadblog.jinwei.me-c008c037facaf632dc9923bb2ecd4c9542c14c9d.tar.gz
+ add Dockerfile
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile20
1 files changed, 18 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 49de25f..985f527 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,6 +1,22 @@
1FROM python:3.6.0 1FROM python:3.6.0 as builder
2 2
3LABEL maintainer=clarkzjw<[email protected]>
3 4
5RUN pip install virtualenv
4 6
5FROM nginx 7COPY requirements.txt /app/requirements.txt
6 8
9COPY bootstrap.py /app/bootstrap.py
10
11RUN /app/bootstrap.py
12
13ADD . /app
14
15WORKDIR /app
16
17RUN /bin/bash -c "source /app/.venv/bin/activate && make html"
18
19
20FROM nginx:alpine
21
22COPY --from=builder /app/_build/html /usr/share/nginx/html
Powered by cgit v1.2.3 (git 2.41.0)