Unnatrathi commited on
Commit
413bb42
·
verified ·
1 Parent(s): 2ab06c6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -4
Dockerfile CHANGED
@@ -2,7 +2,6 @@ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
- # System deps for Pillow + bitsandbytes
6
  RUN apt-get update && apt-get install -y --no-install-recommends \
7
  gcc g++ libgomp1 git curl \
8
  && rm -rf /var/lib/apt/lists/*
@@ -10,10 +9,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
10
  COPY requirements_space.txt .
11
  RUN pip install --no-cache-dir -r requirements_space.txt
12
 
13
- COPY app.py
14
 
15
- # HuggingFace Spaces expects the server on port 7860
16
  ENV PORT=7860
17
  EXPOSE 7860
18
 
19
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
2
 
3
  WORKDIR /app
4
 
 
5
  RUN apt-get update && apt-get install -y --no-install-recommends \
6
  gcc g++ libgomp1 git curl \
7
  && rm -rf /var/lib/apt/lists/*
 
9
  COPY requirements_space.txt .
10
  RUN pip install --no-cache-dir -r requirements_space.txt
11
 
12
+ COPY app.py app.py
13
 
 
14
  ENV PORT=7860
15
  EXPOSE 7860
16
 
17
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]