From d83935f29eb11dc7ef2fd0440862f4f6b7fed81c Mon Sep 17 00:00:00 2001 From: oscar Date: Thu, 23 Oct 2025 19:40:26 +0300 Subject: [PATCH] added docker support --- Dockerfile | 21 +++++++++++++++++++++ requirements.txt | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..cbc630e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM python:3.11-slim + +# System deps (optional – add what you actually need) +RUN apt-get update && apt-get install -y --no-install-recommends \ + curl ca-certificates && rm -rf /var/lib/apt/lists/* + +WORKDIR /app + +# Install Python deps first for better layer caching +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +# Copy your app +COPY . . + +# Force the app to listen on all interfaces, fixed port +ENV PORT=5050 +EXPOSE 5050 + +# Generic python entrypoint (change main.py to your entry file) +CMD ["python", "main.py"] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 7e10602..318d819 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -flask +Flask>=2.3 \ No newline at end of file