nroggendorff commited on
Commit
2addcb5
·
verified ·
1 Parent(s): d89785b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -25
Dockerfile CHANGED
@@ -1,13 +1,5 @@
1
  FROM pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime
2
 
3
- ARG OUTPUT_DIR=nroggendorff/zelda-style-diffusion
4
- ARG INPUT_DS=nroggendorff/zelda-style
5
- ARG BASE=glides/illustriousxl
6
-
7
- ENV OUTPUT_DIR=${OUTPUT_DIR} \
8
- INPUT_DS=${INPUT_DS} \
9
- BASE=${BASE}
10
-
11
  WORKDIR /app
12
 
13
  COPY . .
@@ -15,26 +7,34 @@ COPY . .
15
  RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
16
 
17
  RUN pip install --no-cache-dir --upgrade pip && \
18
- pip install --no-cache-dir \
19
- "git+https://github.com/huggingface/diffusers.git@main#egg=diffusers" \
20
- transformers \
21
- accelerate \
22
- safetensors \
23
- opencv-python \
24
- datasets \
25
- dataclasses \
26
- scikit-learn \
27
- huggingface-hub \
28
- tensorboard \
29
- peft \
30
- ftfy \
31
- jinja2 \
32
- torchvision \
33
- torch \
34
- --extra-index-url https://download.pytorch.org/whl/cu121
35
 
36
  RUN mkdir /.cache && chmod 777 /.cache
37
 
 
 
 
 
 
 
 
 
38
  RUN mkdir /app/${OUTPUT_DIR} && chmod 777 /app/${OUTPUT_DIR}
39
 
40
  RUN accelerate config default
 
1
  FROM pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime
2
 
 
 
 
 
 
 
 
 
3
  WORKDIR /app
4
 
5
  COPY . .
 
7
  RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
8
 
9
  RUN pip install --no-cache-dir --upgrade pip && \
10
+ pip install --no-cache-dir \
11
+ "git+https://github.com/huggingface/diffusers.git@main#egg=diffusers" \
12
+ transformers \
13
+ accelerate \
14
+ safetensors \
15
+ opencv-python \
16
+ datasets \
17
+ dataclasses \
18
+ scikit-learn \
19
+ huggingface-hub \
20
+ tensorboard \
21
+ peft \
22
+ ftfy \
23
+ jinja2 \
24
+ torchvision \
25
+ torch \
26
+ --extra-index-url https://download.pytorch.org/whl/cu121
27
 
28
  RUN mkdir /.cache && chmod 777 /.cache
29
 
30
+ ARG OUTPUT_DIR=zelda-style-diffusion
31
+ ARG INPUT_DS=nroggendorff/zelda-style
32
+ ARG BASE=glides/illustriousxl
33
+
34
+ ENV OUTPUT_DIR=${OUTPUT_DIR} \
35
+ INPUT_DS=${INPUT_DS} \
36
+ BASE=${BASE}
37
+
38
  RUN mkdir /app/${OUTPUT_DIR} && chmod 777 /app/${OUTPUT_DIR}
39
 
40
  RUN accelerate config default