forked from CVxTz/recommender_transformer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (16 loc) · 633 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ubuntu:18.04
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN add-apt-repository -y ppa:deadsnakes/ppa
RUN apt-get install -y curl
RUN apt-get install -y python3-distutils
RUN apt-get install -y python3.8
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
RUN python3.8 get-pip.py
WORKDIR /app
COPY ./recommender ./recommender
COPY requirements.txt requirements.txt
COPY setup.py setup.py
COPY tests tests
RUN python3.8 -m pip install torch==1.8.1+cpu torchvision==0.9.1+cpu -f https://download.pytorch.org/whl/torch_stable.html --no-cache-dir
RUN python3.8 -m pip install . --no-cache-dir