2019-03-31 06:56:42 +02:00
|
|
|
ARG DISTRO=alpine:3.8
|
|
|
|
FROM $DISTRO
|
2018-09-25 21:04:30 +02:00
|
|
|
|
2018-09-28 10:41:17 +02:00
|
|
|
COPY requirements.txt /requirements.txt
|
2018-09-25 21:04:30 +02:00
|
|
|
|
2018-10-16 22:52:21 +02:00
|
|
|
ARG version=master
|
|
|
|
ENV VERSION=$version
|
|
|
|
|
2019-03-31 06:56:42 +02:00
|
|
|
RUN apk add --no-cache nginx curl python3 \
|
|
|
|
&& pip3 install -r /requirements.txt \
|
2018-09-28 10:41:17 +02:00
|
|
|
&& mkdir /run/nginx
|
2018-09-25 21:04:30 +02:00
|
|
|
|
2018-09-28 10:41:17 +02:00
|
|
|
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
COPY . /docs
|
2018-09-25 21:04:30 +02:00
|
|
|
|
2018-10-16 22:52:21 +02:00
|
|
|
RUN mkdir -p /build/$VERSION \
|
2019-10-21 14:18:53 +02:00
|
|
|
&& sphinx-build -W /docs /build/$VERSION
|
2018-09-25 21:04:30 +02:00
|
|
|
|
2018-10-16 21:38:12 +02:00
|
|
|
EXPOSE 80/tcp
|
|
|
|
|
|
|
|
CMD nginx -g "daemon off;"
|