-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
47 lines (34 loc) · 1.14 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
ARG UBUNTU_VERSION=18.04
ARG CUDA=10.1
FROM nvidia/cuda:${CUDA}-base-ubuntu${UBUNTU_VERSION} as base
MAINTAINER <[email protected]>
WORKDIR /io
WORKDIR /app
ENV LANG C.UTF-8
RUN apt-get update && apt-get install -y \
git \
curl \
python3 \
python3-pip
# Install latest Git LFS:
# https://github.com/git-lfs/git-lfs/wiki/Installation
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
RUN apt-get update && apt-get install -y git-lfs
RUN python3 -m pip --no-cache-dir install --upgrade \
pip \
wheel
RUN python3 -m pip install --no-cache-dir \
torch==1.7.1+cu101 -f https://download.pytorch.org/whl/torch_stable.html
RUN ln -s /usr/bin/python3 /usr/bin/python
COPY . /app/
RUN python3 -m pip install -r /app/requirements.txt
RUN cd /io && \
git clone https://github.com/RossiyaSegodnya/ria_news_dataset && \
cd ria_news_dataset && \
git lfs install && \
git lfs pull
RUN cd /io && \
git clone https://huggingface.co/dmitry-vorobiev/rubert_ria_headlines && \
cd rubert_ria_headlines && \
git lfs install && \
git lfs pull