duongve commited on
Commit
a8077c1
·
verified ·
1 Parent(s): 458157f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -6
Dockerfile CHANGED
@@ -1,15 +1,23 @@
1
 
2
- FROM pytorch/pytorch:2.5.1-cuda12.1
 
3
  ENV DEBIAN_FRONTEND noninteractive
4
 
5
  WORKDIR /content
6
- RUN pip install numexpr einops transformers k_diffusion safetensors gradio diffusers xformers
7
 
8
  ADD . .
9
- RUN adduser --disabled-password --gecos '' user
10
- RUN chown -R user:user /content
11
- RUN chmod -R 777 /content
 
 
 
 
 
 
12
  USER user
13
 
 
14
  EXPOSE 7860
15
- CMD python /content/app.py
 
 
1
 
2
+ FROM python:3.9-slim
3
+
4
  ENV DEBIAN_FRONTEND noninteractive
5
 
6
  WORKDIR /content
 
7
 
8
  ADD . .
9
+
10
+ RUN pip install --no-cache-dir -r dna64/requirements.txt
11
+
12
+
13
+ RUN adduser --disabled-password --gecos '' user && \
14
+ chown -R user:user /content && \
15
+ chmod -R 777 /content
16
+
17
+
18
  USER user
19
 
20
+
21
  EXPOSE 7860
22
+
23
+ CMD ["python", "/content/app.py"]