forked from arXiv/arxiv-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-registry
36 lines (27 loc) · 879 Bytes
/
Dockerfile-registry
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
# arxiv/registry
FROM arxiv/base:latest
WORKDIR /opt/arxiv/
RUN yum install -y which mysql mysql-devel
RUN pip install -U pip pipenv
ENV LC_ALL en_US.utf-8
ENV LANG en_US.utf-8
ADD Pipfile /opt/arxiv/
RUN pipenv install
ADD users/ /opt/arxiv/users/
RUN pipenv install /opt/arxiv/users/
ENV PATH "/opt/arxiv:${PATH}"
ADD registry/wsgi.py /opt/arxiv/
ADD registry/registry/ /opt/arxiv/registry/
ADD registry/create_client.py /opt/arxiv/
EXPOSE 8000
ENTRYPOINT ["pipenv", "run"]
CMD ["uwsgi", "--http-socket", ":8000", \
"-M", \
"-t 3000", \
"--manage-script-name", \
"--processes", "8", \
"--threads", "1", \
"--async", "100", \
"--ugreen", \
"--mount", "/registry=wsgi.py", \
"--logformat", "%(addr) %(addr) - %(user_id)|%(session_id) [%(rtime)] [%(uagent)] \"%(method) %(uri) %(proto)\" %(status) %(size) %(micros) %(ttfb)"]