-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
37 lines (31 loc) · 1.12 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
FROM nvidia/cuda:11.0.3-cudnn8-devel-ubuntu20.04
WORKDIR /workspaces/Scardina
RUN mv /etc/apt/sources.list.d /etc/apt/_sources.list.d \
&& apt update \
&& apt install -y --no-install-recommends curl \
&& apt-key del 7fa2af80 \
&& curl -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-keyring_1.0-1_all.deb \
&& dpkg -i cuda-keyring_1.0-1_all.deb \
&& mv /etc/apt/_sources.list.d /etc/apt/sources.list.d
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata
RUN apt update \
&& apt install -y --no-install-recommends \
tmux \
htop \
git \
curl \
moreutils \
lsb-release \
software-properties-common \
ca-certificates \
openssh-client \
python3-pip \
python3.8 \
python3.8-distutils \
libpython3.8-dev
RUN ln -f -s $(which python3.8) $(dirname $(which python3.8))/python3
RUN curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.4.0 python3 -
ENV PATH=$PATH:/root/.local/bin PYTHONPATH=/workspaces/Scardina
COPY pyproject.toml poetry.toml poetry.lock ./
# RUN poetry install
CMD poetry shell