1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-02-21 19:19:39 +02:00
Mailu/docs/Dockerfile
Florent Daigniere ccb3631622 still need pip3
2021-08-03 14:01:44 +02:00

22 lines
412 B
Docker

ARG DISTRO=alpine:3.14
FROM $DISTRO
COPY requirements.txt /requirements.txt
ARG version=master
ENV VERSION=$version
RUN apk add --no-cache nginx curl python3 py3-pip \
&& 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;"