forked from arXiv/arxiv-filemanager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (28 loc) · 871 Bytes
/
Dockerfile
File metadata and controls
37 lines (28 loc) · 871 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
# arXiv file manager
FROM arxiv/base:latest
WORKDIR /opt/arxiv/
RUN yum install -y which mariadb-devel
ADD Pipfile Pipfile.lock /opt/arxiv/
RUN pip install -U pip pipenv
ENV LC_ALL en_US.utf-8
ENV LANG en_US.utf-8
RUN pipenv install
ENV PATH "/opt/arxiv:${PATH}"
ADD wsgi.py uwsgi.ini /opt/arxiv/
ADD filemanager/ /opt/arxiv/filemanager/
# TODO: remove this when possible.
RUN touch upload.log
RUN chmod 777 upload.log
EXPOSE 8000
ENV LOGLEVEL 10
ENTRYPOINT ["pipenv", "run"]
CMD ["uwsgi", "--http-socket", ":8000", \
"-M", \
"-t 3000", \
"--manage-script-name", \
"--processes", "8", \
"--threads", "1", \
"--async", "100", \
"--ugreen", \
"--mount", "/=wsgi.py", \
"--logformat", "%(addr) %(addr) - %(user_id)|%(session_id) [%(rtime)] [%(uagent)] \"%(method) %(uri) %(proto)\" %(status) %(size) %(micros) %(ttfb)"]