File size: 499 Bytes
e0b68d2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
444a135
e0b68d2
 
444a135
e0b68d2
 
 
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
FROM python:3.12-slim

# Set working directory
WORKDIR /app

# Create data and logs directories with proper permissions
RUN mkdir -p /app/data /app/logs && \

    chmod 755 /app/data /app/logs

# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy application code
COPY . .

# Set environment variable for database path
ENV DB_PATH=/data/tokens.db

# Expose port
EXPOSE 7860

# Run the application
CMD ["python", "main.py"]