RishiXD commited on
Commit
a69cb1e
·
verified ·
1 Parent(s): f424d10

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -10
Dockerfile CHANGED
@@ -4,20 +4,15 @@ FROM python:3.9-slim
4
  # Set working dir
5
  WORKDIR /app
6
 
7
- # (Optional) If you don’t need GUI support, you can skip these.
8
- #RUN apt-get update \
9
- # && apt-get install -y --no-install-recommends libgl1-mesa-glx libglib2.0-0 \
10
- # && rm -rf /var/lib/apt/lists/*
11
-
12
- # Copy source & install deps
13
  COPY requirements.txt .
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
  COPY . .
17
 
18
- # Expose the port your FastAPI listens on
19
- ENV PORT=5000
20
  EXPOSE ${PORT}
21
 
22
- # In production, call Uvicorn directly (no reload)
23
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "5000"]
 
4
  # Set working dir
5
  WORKDIR /app
6
 
7
+ # Copy and install dependencies
 
 
 
 
 
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
  COPY . .
12
 
13
+ # Expose the new port and set it via env var
14
+ ENV PORT=7856
15
  EXPOSE ${PORT}
16
 
17
+ # Run Uvicorn bound to port 7856
18
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7856"]