From 95e99f1c1d2fd250892fcfac14afe71ae2ec45b3 Mon Sep 17 00:00:00 2001 From: devops Date: Mon, 15 Dec 2025 17:29:34 +0000 Subject: [PATCH] Add Dockerfile --- Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a11cdaa --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +# Use a lightweight Python image +FROM python:3.11-slim + +# Set working directory +WORKDIR /app + +# Install system dependencies (optional but safe) +RUN apt-get update && apt-get install -y \ + build-essential \ + && rm -rf /var/lib/apt/lists/* + +# Copy requirements first (better Docker caching) +COPY requirements.txt . + +# Install Python dependencies +RUN pip install --no-cache-dir -r requirements.txt + +# Copy application code +COPY app.py . + +# Expose the port Gunicorn will listen on +EXPOSE 3001 + +# Run Gunicorn +CMD ["gunicorn", "--bind", "0.0.0.0:3001", "app:app"] \ No newline at end of file