-
Notifications
You must be signed in to change notification settings - Fork 187
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (18 loc) · 750 Bytes
/
Dockerfile
File metadata and controls
21 lines (18 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM ubuntu:18.04
RUN : \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
software-properties-common \
&& add-apt-repository -y ppa:deadsnakes \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
python3.8 python3.8-venv \
&& python3.8 -m ensurepip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& :
ADD dev-requirements.txt /tmp/dev-requirements.txt
ADD requirements.txt /tmp/requirements.txt
ADD xmnlp/xmnlp-onnx-models /home/xmnlp/xmnlp-onnx-models
ARG PIP_INDEX_URL
RUN python3.8 -m pip install --no-cache-dir -U pip twine flake8 && \
python3.8 -m pip install --no-cache-dir -r /tmp/dev-requirements.txt