Skip to content

Commit 8dd11f1

Browse files
hiddewiejaviereguiluz
authored andcommitted
Local development Docker improvements
1 parent 3c8f5dc commit 8dd11f1

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1-
FROM python:2-stretch as builder
1+
FROM python:2-alpine as builder
22

33
WORKDIR /www
44

55
COPY ./_build/.requirements.txt _build/
66

7-
RUN pip install pip==9.0.1 wheel==0.29.0 \
7+
RUN apk add \
8+
git \
9+
make
10+
11+
RUN pip install pip==9.0.1 wheel==0.29.0 \
812
&& pip install -r _build/.requirements.txt
913

1014
COPY . /www
1115

1216
RUN make -C _build html
1317

14-
FROM nginx:latest
18+
FROM nginx:alpine
1519

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

0 commit comments

Comments
 (0)