SIN-Deploy-Bot commited on
Commit
c68e259
·
1 Parent(s): a8c537d

fix: use start.sh as ENTRYPOINT to configure env

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -2,7 +2,7 @@ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
- # System deps
6
  RUN apt-get update && apt-get install -y \
7
  git \
8
  curl \
@@ -26,7 +26,7 @@ RUN set -eux; \
26
  COPY requirements.txt .
27
  RUN pip install --no-cache-dir -r requirements.txt
28
 
29
- # App code (dockerignore beachten)
30
  COPY . /app
31
 
32
  # Workspace
@@ -35,4 +35,5 @@ RUN mkdir -p /workspace
35
  EXPOSE 7860
36
  ENV HF_SPACE=true PORT=7860
37
 
38
- CMD ["python", "app.py"]
 
 
2
 
3
  WORKDIR /app
4
 
5
+ # System deps + wget
6
  RUN apt-get update && apt-get install -y \
7
  git \
8
  curl \
 
26
  COPY requirements.txt .
27
  RUN pip install --no-cache-dir -r requirements.txt
28
 
29
+ # App Code (achtet .dockerignore)
30
  COPY . /app
31
 
32
  # Workspace
 
35
  EXPOSE 7860
36
  ENV HF_SPACE=true PORT=7860
37
 
38
+ # Use start.sh as entrypoint (sets up opencode config, then execs uvicorn)
39
+ ENTRYPOINT ["/app/start.sh"]