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

21 lines
377 B
Docker
Raw Normal View History

2018-09-25 21:04:30 +02:00
FROM python:3-alpine
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
2018-09-25 21:04:30 +02:00
RUN pip install -r /requirements.txt \
2018-10-16 21:38:12 +02:00
&& apk add --no-cache nginx curl \
&& 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;"