# Fallback only — see go-Dockerfile's header comment for the general # rule. Simplified from the real python-*-Dockerfile set (which had four # separate version-pinned files, 2.7/3.7/3.10.12/3.13) into one # version-parametrized template. Assumes a standard requirements.txt + # app.py (Flask/FastAPI-style `app:app` target for gunicorn) repo. FROM python:${version}-slim WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . EXPOSE 8080 CMD ["gunicorn", "--bind", "0.0.0.0:8080", "app:app"]