1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-04-21 12:07:02 +02:00
Mailu/docs/Dockerfile

22 lines
400 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 \
&& sphinx-build /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;"