ethnmcl commited on
Commit
1f8ff0d
·
verified ·
1 Parent(s): 440feb0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -9
Dockerfile CHANGED
@@ -9,23 +9,15 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
9
 
10
  WORKDIR /app
11
 
12
- # Minimal system deps
13
  RUN apt-get update && apt-get install -y --no-install-recommends \
14
  ca-certificates curl && \
15
  rm -rf /var/lib/apt/lists/*
16
 
17
- # Python deps
18
  COPY requirements.txt ./
19
  RUN pip install --upgrade pip && pip install -r requirements.txt
20
 
21
- # App code
22
- COPY app.py inference.py ./
23
 
24
- # Create cache dir
25
- RUN mkdir -p ${HF_CACHE_DIR}
26
-
27
- # Expose Hugging Face Spaces port
28
  EXPOSE 7860
29
 
30
- # Start FastAPI (Spaces require 0.0.0.0:7860)
31
  CMD uvicorn app:app --host 0.0.0.0 --port 7860 --workers ${WORKERS:-1}
 
9
 
10
  WORKDIR /app
11
 
 
12
  RUN apt-get update && apt-get install -y --no-install-recommends \
13
  ca-certificates curl && \
14
  rm -rf /var/lib/apt/lists/*
15
 
 
16
  COPY requirements.txt ./
17
  RUN pip install --upgrade pip && pip install -r requirements.txt
18
 
19
+ COPY app.py ./
 
20
 
 
 
 
 
21
  EXPOSE 7860
22
 
 
23
  CMD uvicorn app:app --host 0.0.0.0 --port 7860 --workers ${WORKERS:-1}