openai/openai-python
Publicmirrored fromhttps://github.com/openai/openai-pythonAvailable
.devcontainer/Dockerfile
27lines · modecode
| 1 | # syntax=docker/dockerfile:1 |
| 2 | FROM debian:bookworm-slim |
| 3 | |
| 4 | RUN apt-get update && apt-get install -y \ |
| 5 | libxkbcommon0 \ |
| 6 | ca-certificates \ |
| 7 | make \ |
| 8 | curl \ |
| 9 | git \ |
| 10 | unzip \ |
| 11 | libc++1 \ |
| 12 | vim \ |
| 13 | termcap \ |
| 14 | && apt-get clean autoclean |
| 15 | |
| 16 | RUN curl -sSf https://rye-up.com/get | RYE_VERSION="0.15.2" RYE_INSTALL_OPTION="--yes" bash |
| 17 | ENV PATH=/root/.rye/shims:$PATH |
| 18 | |
| 19 | WORKDIR /workspace |
| 20 | |
| 21 | COPY README.md .python-version pyproject.toml requirements.lock requirements-dev.lock /workspace/ |
| 22 | |
| 23 | RUN rye sync --all-features |
| 24 | |
| 25 | COPY . /workspace |
| 26 | |
| 27 | CMD ["rye", "shell"] |