| 1 |
# https://github.com/devcontainers/images/tree/main/src/python |
| 2 |
|
| 3 |
ARG VARIANT="3.14-bookworm" |
| 4 |
FROM mcr.microsoft.com/vscode/devcontainers/python:${VARIANT} |
| 5 |
|
| 6 |
# [Optional] Uncomment this section to install additional OS packages. |
| 7 |
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ |
| 8 |
&& apt-get -y install --no-install-recommends libgsl-dev |
| 9 |
|
| 10 |
# [Optional] Uncomment this line to install global node packages. |
| 11 |
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1 |
| 12 |
|
| 13 |
# [Optional] If your pip requirements rarely change, uncomment this section to add them to the image. |
| 14 |
# Upgrade pip and install developer requirements |
| 15 |
COPY .devcontainer/dev-requirements.txt /tmp/pip-tmp/ |
| 16 |
RUN pip3 install --upgrade pip \ |
| 17 |
&& pip3 --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/dev-requirements.txt \ |
| 18 |
&& rm -rf /tmp/pip-tmp |