|
|
@ -3,7 +3,7 @@ FROM python:3-alpine
|
|
|
|
COPY requirements.txt /requirements.txt
|
|
|
|
COPY requirements.txt /requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
RUN pip install -r /requirements.txt \
|
|
|
|
RUN pip install -r /requirements.txt \
|
|
|
|
&& apk add --no-cache nginx \
|
|
|
|
&& apk add --no-cache nginx curl \
|
|
|
|
&& mkdir /run/nginx
|
|
|
|
&& mkdir /run/nginx
|
|
|
|
|
|
|
|
|
|
|
|
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
@ -11,4 +11,8 @@ COPY . /docs
|
|
|
|
|
|
|
|
|
|
|
|
RUN sphinx-build /docs /build
|
|
|
|
RUN sphinx-build /docs /build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EXPOSE 80/tcp
|
|
|
|
|
|
|
|
|
|
|
|
CMD nginx -g "daemon off;"
|
|
|
|
CMD nginx -g "daemon off;"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HEALTHCHECK CMD curl -f -L http://localhost/ || exit 1
|
|
|
|