You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
403 B
Docker
22 lines
403 B
Docker
ARG DISTRO=alpine:3.8
|
|
FROM $DISTRO
|
|
|
|
COPY requirements.txt /requirements.txt
|
|
|
|
ARG version=master
|
|
ENV VERSION=$version
|
|
|
|
RUN apk add --no-cache nginx curl python3 \
|
|
&& pip3 install -r /requirements.txt \
|
|
&& mkdir /run/nginx
|
|
|
|
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
|
|
COPY . /docs
|
|
|
|
RUN mkdir -p /build/$VERSION \
|
|
&& sphinx-build -W /docs /build/$VERSION
|
|
|
|
EXPOSE 80/tcp
|
|
|
|
CMD nginx -g "daemon off;"
|