uncloseai.com/languages/python/openai-client/Dockerfile

13 lines
334 B
Docker

# Pin to specific Python version (checked 2025-10-12: python:3.13-alpine is latest stable)
FROM python:3.13-alpine
WORKDIR /app
COPY requirements.txt /app/requirements.txt
COPY examples.py /app/examples.py
RUN chmod +x /app/examples.py
RUN pip3 install --no-cache-dir -r /app/requirements.txt
CMD ["python3", "/app/examples.py"]