Fourstore commited on
Commit
5739aa1
·
verified ·
1 Parent(s): 81e01a2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -2,11 +2,16 @@ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
- RUN pip install --no-cache-dir flask httpx beautifulsoup4 gunicorn pymongo telegram
 
 
 
6
 
7
  COPY . .
8
 
9
  ENV PORT=7860
 
 
10
  EXPOSE 7860
11
 
12
  CMD ["python", "app.py"]
 
2
 
3
  WORKDIR /app
4
 
5
+ RUN apt-get update && apt-get install -y --no-install-recommends gcc && rm -rf /var/lib/apt/lists/*
6
+
7
+ COPY requirements.txt .
8
+ RUN pip install --no-cache-dir -r requirements.txt
9
 
10
  COPY . .
11
 
12
  ENV PORT=7860
13
+ ENV PYTHONUNBUFFERED=1
14
+
15
  EXPOSE 7860
16
 
17
  CMD ["python", "app.py"]