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