1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00
Mailu/docs/Dockerfile

22 lines
403 B
Docker
Raw Normal View History

ARG DISTRO=alpine:3.8
FROM $DISTRO
2018-09-25 21:04:30 +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
RUN apk add --no-cache nginx curl python3 \
&& pip3 install -r /requirements.txt \
&& mkdir /run/nginx
2018-09-25 21:04:30 +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;"