forked from EpocDotFr/webtodotxt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (33 loc) · 753 Bytes
/
Dockerfile
File metadata and controls
39 lines (33 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM python:3.6-alpine
MAINTAINER Jan Losinski
ADD requirements.txt /requirements.txt
RUN apk add -U \
libxml2 \
libxslt \
&& \
apk add -U --virtual .bdeps \
gcc \
linux-headers \
libxml2-dev \
libxslt-dev \
git \
musl-dev \
&& \
pip install uwsgi && \
pip install -r /requirements.txt && \
pip install webdavclient3 && \
apk del .bdeps
ADD . /app
RUN cd /app && \
cp config.docker.py config.py && \
pybabel compile -d translations && \
mkdir /data && \
adduser -S uwsgi && \
chown -R uwsgi /data && \
chown -R uwsgi /app/storage
WORKDIR /app
ENV MODE=http
VOLUME /data
EXPOSE 9000
CMD uwsgi --master --wsgi-file uwsgi.py --callable app \
--processes 2 --threads 2 --$MODE :9000 --uid uwsgi