devve1 commited on
Commit
61a257d
1 Parent(s): 5b1c60d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -7
Dockerfile CHANGED
@@ -1,14 +1,13 @@
1
- FROM nvidia/cuda:12.2.2-cudnn8-devel-ubuntu22.04
2
 
3
  ARG DEBIAN_FRONTEND=noninteractive
4
 
5
  RUN apt-get update && apt-get install --no-install-recommends -y \
6
  build-essential \
7
  ffmpeg \
8
- python3.8 \
9
- python3.8-pip \
10
- python3.8-dev \
11
- python3.8-venv \
12
  ninja-build \
13
  libreoffice \
14
  git \
@@ -23,14 +22,14 @@ RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
23
 
24
  ENV VIRTUAL_ENV=/opt/venv
25
 
26
- RUN python3.8 -m venv $VIRTUAL_ENV
27
  ENV PATH="$VIRTUAL_ENV/bin:${PATH}"
28
  ENV PATH="/root/.cargo/bin:${PATH}"
29
 
30
  COPY ./requirements.txt /data/requirements.txt
31
  RUN pip3 install --no-cache-dir --upgrade -r /data/requirements.txt
32
 
33
- RUN python3.8 -m spacy download en_core_web_sm
34
 
35
  COPY pip.conf $VIRTUAL_ENV/pip.conf
36
 
 
1
+ FROM nvidia/cuda:12.2.2-cudnn8-devel-ubuntu20.04
2
 
3
  ARG DEBIAN_FRONTEND=noninteractive
4
 
5
  RUN apt-get update && apt-get install --no-install-recommends -y \
6
  build-essential \
7
  ffmpeg \
8
+ python3-pip \
9
+ python3-dev \
10
+ python3-venv \
 
11
  ninja-build \
12
  libreoffice \
13
  git \
 
22
 
23
  ENV VIRTUAL_ENV=/opt/venv
24
 
25
+ RUN python3 -m venv $VIRTUAL_ENV
26
  ENV PATH="$VIRTUAL_ENV/bin:${PATH}"
27
  ENV PATH="/root/.cargo/bin:${PATH}"
28
 
29
  COPY ./requirements.txt /data/requirements.txt
30
  RUN pip3 install --no-cache-dir --upgrade -r /data/requirements.txt
31
 
32
+ RUN python3 -m spacy download en_core_web_sm
33
 
34
  COPY pip.conf $VIRTUAL_ENV/pip.conf
35