add Python example with openai==2.3.0 (latest) and dependency pinning standards to CLAUDE.md
This commit is contained in:
parent
973c045af6
commit
39502bcac3
7 changed files with 320 additions and 0 deletions
14
languages/python/Dockerfile
Normal file
14
languages/python/Dockerfile
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
FROM alpine:latest
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt /app/requirements.txt
|
||||
COPY examples.py /app/examples.py
|
||||
|
||||
RUN chmod +x /app/examples.py
|
||||
|
||||
RUN apk --no-cache add python3 py3-pip ca-certificates \
|
||||
&& pip3 install --break-system-packages -r /app/requirements.txt \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
CMD ["python3", "/app/examples.py"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue