forked from deeppavlov/dream
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdockerfile_agent
45 lines (33 loc) · 1.21 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
FROM python:3.7-slim-stretch
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
ARG AGENT_COMMIT=1dc69085d0fed86709cc7022e6a1c1ed7f517b62
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