We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c8f5dc commit 8dd11f1Copy full SHA for 8dd11f1
.dockerignore
@@ -0,0 +1,8 @@
1
+/.git
2
+/_build/doctrees
3
+/_build/spelling
4
+/_build/html
5
+/_build/logs.txt
6
+/_build/vendor
7
+/_build/output
8
+*.pyc
Dockerfile
@@ -1,16 +1,20 @@
-FROM python:2-stretch as builder
+FROM python:2-alpine as builder
WORKDIR /www
COPY ./_build/.requirements.txt _build/
-RUN pip install pip==9.0.1 wheel==0.29.0 \
+RUN apk add \
+ git \
9
+ make
10
+
11
+RUN pip install pip==9.0.1 wheel==0.29.0 \
12
&& pip install -r _build/.requirements.txt
13
14
COPY . /www
15
16
RUN make -C _build html
17
-FROM nginx:latest
18
+FROM nginx:alpine
19
20
COPY --from=builder /www/_build/html /usr/share/nginx/html
0 commit comments