File size: 682 Bytes
968eeaa
d4d00fe
 
968eeaa
d4d00fe
 
 
 
 
 
 
 
968eeaa
d4d00fe
 
968eeaa
d4d00fe
 
968eeaa
d4d00fe
c612731
d4d00fe
968eeaa
d4d00fe
 
 
968eeaa
d4d00fe
 
968eeaa
c612731
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
# Use slim image for small size
FROM python:3.11-slim

# Install system dependencies
RUN apt-get update && \
    apt-get install -y --no-install-recommends \
    build-essential \
    libsqlite3-dev \
    curl \
    wget \
    && rm -rf /var/lib/apt/lists/*

# Set working directory
WORKDIR /app

# Copy app files
COPY . /app/

# Create necessary directories and set permissions
RUN mkdir -p ./downloads ./logs ./data && \
    chmod -R 777 ./downloads ./logs ./data

# Install Python deps
RUN pip install --upgrade pip
RUN pip install -r requirements.txt

# Expose FastAPI port
EXPOSE 7860

# Start FastAPI app (main.py will start both bot and web server)
CMD ["python", "main.py"]