ibadhasnain commited on
Commit
8ca5817
·
verified ·
1 Parent(s): fe67e9e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -11
Dockerfile CHANGED
@@ -1,19 +1,13 @@
1
- # Use Python base
2
  FROM python:3.11-slim
3
 
4
- # System deps
5
- RUN apt-get update && apt-get install -y --no-install-recommends build-essential && rm -rf /var/lib/apt/lists/*
6
-
7
  WORKDIR /app
8
- COPY requirements.txt /app/requirements.txt
 
9
  RUN pip install --no-cache-dir -r requirements.txt
 
10
 
11
- # Copy app
12
- COPY . /app
13
-
14
- # Default port for Spaces
15
  ENV PORT=7860
16
  EXPOSE 7860
17
 
18
- # Chainlit needs to listen on all interfaces and the Space's port
19
- CMD ["bash", "-lc", "chainlit run app.py -h 0.0.0.0 -p $PORT"]
 
 
1
  FROM python:3.11-slim
2
 
 
 
 
3
  WORKDIR /app
4
+ RUN apt-get update && apt-get install -y build-essential && rm -rf /var/lib/apt/lists/*
5
+ COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
+ COPY . .
8
 
9
+ # Hugging Face Spaces injects PORT
 
 
 
10
  ENV PORT=7860
11
  EXPOSE 7860
12
 
13
+ CMD ["bash", "-lc", "chainlit run app.py --host=0.0.0.0 --port $PORT"]