Fdgg55 commited on
Commit
97bd74b
·
verified ·
1 Parent(s): 38b15f7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
  FROM python:3.9-slim
2
 
3
- # Install FFmpeg (Required for Video Downloading and Audio Processing)
4
  RUN apt-get update && apt-get install -y ffmpeg git && rm -rf /var/lib/apt/lists/*
5
 
6
  WORKDIR /app
@@ -10,10 +10,12 @@ ENV XDG_CACHE_HOME=/tmp
10
  COPY requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Pre-download the Whisper AI Voice model during build so it's instantly ready
14
  RUN python -c "import whisper; whisper.load_model('base')"
15
 
16
- # Copy the app code and start the API
 
 
17
  COPY app.py .
18
  EXPOSE 7860
19
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.9-slim
2
 
3
+ # Install FFmpeg for Voice/Video
4
  RUN apt-get update && apt-get install -y ffmpeg git && rm -rf /var/lib/apt/lists/*
5
 
6
  WORKDIR /app
 
10
  COPY requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Pre-download the Voice Model
14
  RUN python -c "import whisper; whisper.load_model('base')"
15
 
16
+ # Pre-download the Uncensored Image Model
17
+ RUN python -c "from diffusers import StableDiffusionPipeline; StableDiffusionPipeline.from_pretrained('prompthero/openjourney', safety_checker=None)"
18
+
19
  COPY app.py .
20
  EXPOSE 7860
21
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]