yinwentao commited on
Commit
1e88c5f
·
1 Parent(s): 8d34f50

updateDKfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -4
Dockerfile CHANGED
@@ -1,9 +1,18 @@
1
  FROM nvidia/cuda:11.3.1-cudnn8-devel-ubuntu18.04
2
 
3
- RUN apt-get update && apt-get install -y \
4
- python3.8.8 \
5
- python3-pip \
6
- && rm -rf /var/lib/apt/lists/*
 
 
 
 
 
 
 
 
 
7
 
8
  WORKDIR /code
9
 
 
1
  FROM nvidia/cuda:11.3.1-cudnn8-devel-ubuntu18.04
2
 
3
+ RUN : \
4
+ && apt-get update \
5
+ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
6
+ software-properties-common \
7
+ && add-apt-repository -y ppa:deadsnakes \
8
+ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
9
+ python3.8-venv \
10
+ && apt-get clean \
11
+ && rm -rf /var/lib/apt/lists/* \
12
+ && :
13
+
14
+ RUN python3.8 -m venv /venv
15
+ ENV PATH=/venv/bin:$PATH
16
 
17
  WORKDIR /code
18