mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-18 03:21:36 +02:00
18 lines
356 B
Docker
18 lines
356 B
Docker
FROM python:3-alpine
|
|
|
|
COPY requirements.txt /requirements.txt
|
|
|
|
ARG version=master
|
|
ENV VERSION=$version
|
|
|
|
RUN pip install -r /requirements.txt \
|
|
&& apk add --no-cache nginx \
|
|
&& mkdir /run/nginx
|
|
|
|
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
|
|
COPY . /docs
|
|
|
|
RUN mkdir -p /build/$VERSION \
|
|
&& sphinx-build /docs /build/$VERSION
|
|
|
|
CMD nginx -g "daemon off;" |