reorganize Python with openai-client and requests subdirs, pin to python:3.13-alpine, add Docker image consistency standards
This commit is contained in:
parent
39502bcac3
commit
4941cce333
8 changed files with 150 additions and 14 deletions
13
languages/python/openai-client/Dockerfile
Normal file
13
languages/python/openai-client/Dockerfile
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# 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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue