From c380b01e49c2a9307b71682da78e39a286d6f09f Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 6 Feb 2026 09:42:27 +0000 Subject: [PATCH] doc --- Dockerfile | 22 ++++++++++++++++++++++ requirements.txt | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 Dockerfile create mode 100644 requirements.txt diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fd7f3fc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +# Use a lightweight Python image +FROM python:3.11-slim + +# Set the working directory inside the container +WORKDIR /app + +# Copy the requirements file first to leverage Docker cache +COPY requirements.txt . + +# Install dependencies +RUN pip install --no-cache-dir -r requirements.txt + +# Copy the rest of your application code +COPY . . + +# Expose the port Flask runs on (default is 5000) +EXPOSE 5000 + +# Run the application using Gunicorn for production +# Replace 'app:app' with 'your_filename:app_variable_name' +# CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app"] +CMD ["python", "app.py"] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..f163f4d --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +flask +gunicorn \ No newline at end of file