-
Notifications
You must be signed in to change notification settings - Fork 78
/
Copy pathdockerfile_agent
44 lines (34 loc) · 1.24 KB
/
dockerfile_agent
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
40
41
42
43
44
FROM python:3.7
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -y --fix-missing && \
apt-get install -y -q \
build-essential \
openssl \
git \
libssl-dev \
libffi-dev \
cron && \
rm -rf /var/lib/apt/lists/*
ENV DEBIAN_FRONTEND noninteractive
ENV PYTHONPATH "${PYTHONPATH}:/dp-agent"
ENV DPA_LAUNCHING_ENV "docker"
RUN mkdir dp-agent
WORKDIR /dp-agent
# TODO: Copy only necessary dirs and files
RUN pip install --upgrade pip
RUN mkdir /pavlov && \
cd /pavlov && \
git clone https://github.com/deeppavlov/DeepPavlov && \
cd DeepPavlov && \
pip install -e .
RUN pip install sentry-sdk==0.16.0 requests==2.24.0 pandas GitPython==3.1.14 pyaml openpyxl==3.0.0 xlrd==1.2.0 ruamel-yaml==0.17.21
RUN pip install jinja2==3.0.3 Werkzeug==2.0.3
ARG AGENT_COMMIT=cea048eb2c421649a534321dd570dc52e90da0b7
RUN pip install https://codeload.github.com/deeppavlov/dp-agent/tar.gz/${AGENT_COMMIT}
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
ENV PYTHONPATH "${PYTHONPATH}:/dp-agent"
ENV DPA_LAUNCHING_ENV "docker"
COPY . /dp-agent/.
# COPY agent_settings.py /usr/local/lib/python3.7/site-packages/deeppavlov_agent/settings.py
#RUN printf 'debug = False\nresponse_logger = False' > /dp-agent/dp_agent_settings.py