| 1 |
# Choices listed at https://github.com/devcontainers/images/blob/v0.3.10/src/python/.devcontainer/Dockerfile#L1 |
| 2 |
# Note: If on arm64/Apple Silicon, must use -bullseye variant. |
| 3 |
ARG VARIANT="3.11-bookworm" |
| 4 |
FROM mcr.microsoft.com/vscode/devcontainers/python:${VARIANT} |
| 5 |
|
| 6 |
# Install dev dependencies globally in the image. |
| 7 |
# (Still easy to experiment with upgrades/new dependencies by installing them in --user scope, |
| 8 |
# and if you want to keep them, add them to the requirements file and rebuild the container.) |
| 9 |
COPY dev-deps/python3.11/*.txt /tmp/bidict-dev-deps/ |
| 10 |
RUN pip3 --disable-pip-version-check install -U pip && \ |
| 11 |
pip3 --disable-pip-version-check --no-cache-dir install \ |
| 12 |
-r /tmp/bidict-dev-deps/test.txt \ |
| 13 |
-r /tmp/bidict-dev-deps/lint.txt \ |
| 14 |
-r /tmp/bidict-dev-deps/docs.txt \ |
| 15 |
-r /tmp/bidict-dev-deps/dev.txt \ |
| 16 |
&& rm -rf /tmp/bidict-dev-deps |
| 17 |
|
| 18 |
# [Optional] Install additional OS packages. |
| 19 |
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ |
| 20 |
&& apt-get -y install --no-install-recommends \ |
| 21 |
graphviz optipng `# for docs/_static/build-bidict-types-diagram.sh` \ |
| 22 |
fish `# make fish shell available for development` |