added Docker file and docker compose yml files

This commit is contained in:
2026-02-21 15:00:05 +05:30
parent 5b557efd80
commit 163c7814ed
5 changed files with 90 additions and 201 deletions

24
Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Create necessary directories
RUN mkdir -p app/logs app/static/uploads app/static/downloads
# Expose port
EXPOSE 5001
# Run the application
CMD ["python", "run.py"]