Spaces:
Sleeping
Sleeping
py3
Browse files- Dockerfile +12 -11
Dockerfile
CHANGED
@@ -1,19 +1,20 @@
|
|
1 |
-
FROM nvidia/
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
RUN apt-get -
|
8 |
-
|
|
|
9 |
|
10 |
WORKDIR /code
|
11 |
|
12 |
COPY ./requirements.txt /code/requirements.txt
|
13 |
|
14 |
-
RUN
|
15 |
|
16 |
-
RUN
|
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
|
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
|