Added Docker and Removed Socket Integration

This commit is contained in:
Azeez Muibi
2025-03-21 08:41:00 +01:00
parent af9a6148a1
commit 167381c62d
9 changed files with 439 additions and 55 deletions
+21
View File
@@ -0,0 +1,21 @@
FROM python:3.11-slim
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PORT=5000
# Expose port
EXPOSE 5000
# Run the application with Gunicorn
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "4", "app:create_app()"]