-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (27 loc) · 755 Bytes
/
Dockerfile
File metadata and controls
36 lines (27 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM python:3.11-slim
WORKDIR /AdvAITelegramBot
# Copy requirements first for better layer caching
COPY requirements.txt /AdvAITelegramBot/
# Install system dependencies
RUN apt-get update && apt-get install -y \
libsndfile1 \
ffmpeg \
gcc \
libffi-dev \
curl \
git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY . /AdvAITelegramBot/
# Create directories if they don't exist
RUN mkdir -p sessions
# Expose port if needed for web interface or health checks
EXPOSE 8080
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Run the bot
CMD ["python", "run.py"]