-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.cpu
31 lines (21 loc) · 911 Bytes
/
Dockerfile.cpu
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
FROM python:3.6-slim-stretch
ARG http_proxy
ENV http_proxy=$http_proxy
ENV https_proxy=$http_proxy
RUN echo $http_proxy
RUN apt-get update && \
apt-get -y install build-essential && \
apt-get clean && rm -rf /var/lib/apt/lists/*
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
# COPY requirements.txt /tmp
RUN pip3 install -U pip
# RUN pip --no-cache-dir install -r /tmp/requirements.txt
COPY . /usr/src/qurator-sbb-tools
RUN mkdir -p /usr/src/qurator-sbb-tools/data
RUN mkdir -p /usr/src/qurator-sbb-tools/alto-xml
RUN mkdir -p /usr/src/qurator-sbb-tools/config
RUN pip3 --no-cache-dir install -e /usr/src/qurator-sbb-tools
WORKDIR /usr/src/qurator-sbb-tools
CMD env PASSWD_FILE=/usr/src/qurator-sbb-tools/config/htpasswd CONFIG=/usr/src/qurator-sbb-tools/config/active.json env USE_CUDA=False gunicorn --bind 0.0.0.0:5000 qurator.webapp.wsgi:app