-
Notifications
You must be signed in to change notification settings - Fork 16
/
Dockerfile
30 lines (26 loc) · 897 Bytes
/
Dockerfile
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
FROM ubuntu:18.04
ENV BROWSER=/browser \
LC_ALL=en_US.UTF-8
COPY requirements.txt ml_core/requirements.txt
RUN apt-get update && \
apt-get install -y --no-install-suggests --no-install-recommends \
ca-certificates locales libxml2 libxml2-dev gcc g++ wget \
python3 python3-dev python3-distutils && \
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen && \
wget -O - https://bootstrap.pypa.io/get-pip.py | python3 && \
cd ml_core && \
pip3 install --no-cache-dir -r requirements.txt && \
apt-get remove -y python3-dev libxml2-dev gcc g++ wget && \
apt-get remove -y .*-doc .*-man >/dev/null && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
echo '#!/bin/bash\n\
\n\
echo\n\
echo " $@"\n\
echo\n\' > /browser && \
chmod +x /browser
COPY . ml_core/
RUN cd ml_core && pip3 install -e .