WinterGYC commited on
Commit
473a288
1 Parent(s): 934dbc8
Files changed (1) hide show
  1. Dockerfile +8 -2
Dockerfile CHANGED
@@ -1,13 +1,19 @@
1
  # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
  # you will also find guides on how best to write your Dockerfile
3
 
4
- FROM python:3.9
 
 
 
 
 
 
5
 
6
  WORKDIR /code
7
 
8
  COPY ./requirements.txt /code/requirements.txt
9
 
10
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
 
12
  # Set up a new user named "user" with user ID 1000
13
  RUN useradd -m -u 1000 user
 
1
  # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
  # you will also find guides on how best to write your Dockerfile
3
 
4
+ FROM nvidia/cuda:12.2.0-devel-ubuntu20.04
5
+
6
+ #set up environment
7
+ RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -y curl
8
+ RUN apt-get install unzip
9
+ RUN apt-get -y install python3
10
+ RUN apt-get -y install python3-pip
11
 
12
  WORKDIR /code
13
 
14
  COPY ./requirements.txt /code/requirements.txt
15
 
16
+ RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
17
 
18
  # Set up a new user named "user" with user ID 1000
19
  RUN useradd -m -u 1000 user