bep40 commited on
Commit
ec74079
·
verified ·
1 Parent(s): 2f23819

Fix: install all deps in Dockerfile before USER user

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -7,6 +7,8 @@ RUN apt-get update && \
7
  build-essential && \
8
  rm -rf /var/lib/apt/lists/*
9
 
 
 
10
  RUN useradd -m -u 1000 user
11
  USER user
12
 
@@ -22,8 +24,6 @@ ENV HOME=/home/user \
22
  WORKDIR /app
23
  COPY --chown=user . /app
24
 
25
- RUN uv pip install --system -r requirements.txt
26
-
27
  EXPOSE 7860
28
 
29
  CMD ["python", "sandbox_server.py"]
 
7
  build-essential && \
8
  rm -rf /var/lib/apt/lists/*
9
 
10
+ RUN uv pip install --system fastapi uvicorn python-multipart requests beautifulsoup4 lxml jinja2 yt-dlp huggingface_hub gTTS pillow edge-tts python-dateutil httpx
11
+
12
  RUN useradd -m -u 1000 user
13
  USER user
14
 
 
24
  WORKDIR /app
25
  COPY --chown=user . /app
26
 
 
 
27
  EXPOSE 7860
28
 
29
  CMD ["python", "sandbox_server.py"]