added docker support

main
oscar 4 days ago
parent 9ae7e10e07
commit d83935f29e

@ -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"]

@ -1 +1 @@
flask Flask>=2.3
Loading…
Cancel
Save