jclyo1 commited on
Commit
1a746a4
1 Parent(s): f03da07
Files changed (1) hide show
  1. Dockerfile +12 -11
Dockerfile CHANGED
@@ -1,19 +1,20 @@
1
- FROM nvidia/driver:418.40.04-ubuntu18.04
2
- RUN apt-get -y update \
3
- && apt-get install -y software-properties-common \
4
- && apt-get -y update \
5
- && add-apt-repository universe
6
- RUN apt-get -y update
7
- RUN apt-get -y install python3
8
- RUN apt-get -y install python3-pip
 
9
 
10
  WORKDIR /code
11
 
12
  COPY ./requirements.txt /code/requirements.txt
13
 
14
- RUN python3-pip install --no-cache-dir --upgrade -r /code/requirements.txt
15
 
16
- RUN python3-pip install diffusers transformers accelerate scipy safetensors
17
 
18
 
19
 
@@ -33,7 +34,7 @@ WORKDIR $HOME/app
33
  COPY --chown=user . $HOME/app
34
 
35
  # Download and uzip truepic-size from Google Drive
36
- RUN python3-pip install gdown
37
  RUN gdown --id 1MdXMu8xSuG8WClY3JSgtL3Vy1IWTmWZO
38
  RUN tar -xf truepic-sign-v0.1.0-ubuntu-latest.tar.gz
39
  RUN chmod +x truepic-sign
 
1
+ FROM nvidia/cuda:12.0.0-cudnn8-devel-ubuntu22.04
2
+
3
+ # Using the Ubuntu image (our OS)
4
+ # Update package manager (apt-get)
5
+ # and install (with the yes flag `-y`)
6
+ # Python and Pip
7
+ RUN apt-get update && apt-get install -y \
8
+ python3-pip \
9
+ wget
10
 
11
  WORKDIR /code
12
 
13
  COPY ./requirements.txt /code/requirements.txt
14
 
15
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
16
 
17
+ RUN pip install diffusers transformers accelerate scipy safetensors
18
 
19
 
20
 
 
34
  COPY --chown=user . $HOME/app
35
 
36
  # Download and uzip truepic-size from Google Drive
37
+ RUN pip install gdown
38
  RUN gdown --id 1MdXMu8xSuG8WClY3JSgtL3Vy1IWTmWZO
39
  RUN tar -xf truepic-sign-v0.1.0-ubuntu-latest.tar.gz
40
  RUN chmod +x truepic-sign