1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-11-25 22:12:28 +02:00
Files
Mailu/docs/Dockerfile
Florent Daigniere 2b63280f59 doh
2021-08-03 14:16:14 +02:00

21 lines
383 B
Docker

ARG DISTRO=python:3.8-alpine3.14
FROM $DISTRO
COPY requirements.txt /requirements.txt
ARG version=master
ENV VERSION=$version
RUN apk add --no-cache nginx curl \
&& pip3 install -r /requirements.txt
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;"