FreshPixels commited on
Commit
2ba2aab
·
verified ·
1 Parent(s): dd6b1c9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -2
Dockerfile CHANGED
@@ -1,10 +1,18 @@
1
- FROM python:3.12-slim
2
 
3
  WORKDIR /app
4
 
 
 
 
 
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
  COPY . .
9
 
10
- CMD ["python", "bot.py"]
 
 
 
1
+ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
+ # Системные зависимости
6
+ RUN apt-get update && apt-get install -y --no-install-recommends \
7
+ gcc \
8
+ libpq-dev \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
  COPY requirements.txt .
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
  COPY . .
15
 
16
+ EXPOSE 7860
17
+
18
+ CMD ["python", "bot.py"]