Percy3822 commited on
Commit
53c9e29
·
verified ·
1 Parent(s): 548a1f3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -11
Dockerfile CHANGED
@@ -1,27 +1,18 @@
1
  FROM python:3.10-slim
2
 
3
- # Environment settings
4
  ENV DEBIAN_FRONTEND=noninteractive \
5
  PYTHONDONTWRITEBYTECODE=1 \
6
  PYTHONUNBUFFERED=1
7
 
8
- # System dependencies
9
- RUN apt-get update && apt-get install -y --no-install-recommends \
10
- build-essential curl && \
11
- rm -rf /var/lib/apt/lists/*
12
-
13
- # Set work directory
14
  WORKDIR /code
15
 
16
- # Install Python dependencies
17
  COPY requirements.txt .
18
  RUN pip install --no-cache-dir -r requirements.txt
19
 
20
- # Copy the rest of the app
21
  COPY . .
22
 
23
- # Expose Hugging Face default port
24
  EXPOSE 7860
25
 
26
- # Start FastAPI app with uvicorn
27
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.10-slim
2
 
 
3
  ENV DEBIAN_FRONTEND=noninteractive \
4
  PYTHONDONTWRITEBYTECODE=1 \
5
  PYTHONUNBUFFERED=1
6
 
 
 
 
 
 
 
7
  WORKDIR /code
8
 
9
+ # Install dependencies
10
  COPY requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Copy app and static UI
14
  COPY . .
15
 
 
16
  EXPOSE 7860
17
 
 
18
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]