🐳 Python with Node.js
Last updated by bot: 2024-08-08
The latest tag is currently:
- Node.js: 22.x
- npm: 10.x
- yarn: stable
- Python: latest
- pip: latest
- pipenv: latest
- poetry: latest
- uv: latest
🏷 Tags
To use a specific combination of Python and Node.js see the following table of available image tags.
| Tag | Python version | Node.js version | Distro |
|---|---|---|---|
python3.12-nodejs22 |
3.12.5 | 22.6.0 | bookworm |
python3.12-nodejs22-bullseye |
3.12.5 | 22.6.0 | bullseye |
python3.12-nodejs22-slim |
3.12.5 | 22.6.0 | slim |
python3.12-nodejs22-alpine |
3.12.5 | 22.6.0 | alpine |
python3.12-nodejs20 |
3.12.5 | 20.16.0 | bookworm |
python3.12-nodejs20-bullseye |
3.12.5 | 20.16.0 | bullseye |
python3.12-nodejs20-slim |
3.12.5 | 20.16.0 | slim |
python3.12-nodejs20-alpine |
3.12.5 | 20.16.0 | alpine |
python3.12-nodejs18 |
3.12.5 | 18.20.4 | bookworm |
python3.12-nodejs18-bullseye |
3.12.5 | 18.20.4 | bullseye |
python3.12-nodejs18-slim |
3.12.5 | 18.20.4 | slim |
python3.12-nodejs18-alpine |
3.12.5 | 18.20.4 | alpine |
python3.11-nodejs22 |
3.11.9 | 22.6.0 | bookworm |
python3.11-nodejs22-bullseye |
3.11.9 | 22.6.0 | bullseye |
python3.11-nodejs22-slim |
3.11.9 | 22.6.0 | slim |
python3.11-nodejs22-alpine |
3.11.9 | 22.6.0 | alpine |
python3.11-nodejs20 |
3.11.9 | 20.16.0 | bookworm |
python3.11-nodejs20-bullseye |
3.11.9 | 20.16.0 | bullseye |
python3.11-nodejs20-slim |
3.11.9 | 20.16.0 | slim |
python3.11-nodejs20-alpine |
3.11.9 | 20.16.0 | alpine |
python3.11-nodejs18 |
3.11.9 | 18.20.4 | bookworm |
python3.11-nodejs18-bullseye |
3.11.9 | 18.20.4 | bullseye |
python3.11-nodejs18-slim |
3.11.9 | 18.20.4 | slim |
python3.11-nodejs18-alpine |
3.11.9 | 18.20.4 | alpine |
python3.10-nodejs22 |
3.10.14 | 22.6.0 | bookworm |
python3.10-nodejs22-bullseye |
3.10.14 | 22.6.0 | bullseye |
python3.10-nodejs22-slim |
3.10.14 | 22.6.0 | slim |
python3.10-nodejs22-alpine |
3.10.14 | 22.6.0 | alpine |
python3.10-nodejs20 |
3.10.14 | 20.16.0 | bookworm |
python3.10-nodejs20-bullseye |
3.10.14 | 20.16.0 | bullseye |
python3.10-nodejs20-slim |
3.10.14 | 20.16.0 | slim |
python3.10-nodejs20-alpine |
3.10.14 | 20.16.0 | alpine |
python3.10-nodejs18 |
3.10.14 | 18.20.4 | bookworm |
python3.10-nodejs18-bullseye |
3.10.14 | 18.20.4 | bullseye |
python3.10-nodejs18-slim |
3.10.14 | 18.20.4 | slim |
python3.10-nodejs18-alpine |
3.10.14 | 18.20.4 | alpine |
python3.9-nodejs22 |
3.9.19 | 22.6.0 | bookworm |
python3.9-nodejs22-bullseye |
3.9.19 | 22.6.0 | bullseye |
python3.9-nodejs22-slim |
3.9.19 | 22.6.0 | slim |
python3.9-nodejs22-alpine |
3.9.19 | 22.6.0 | alpine |
python3.9-nodejs20 |
3.9.19 | 20.16.0 | bookworm |
python3.9-nodejs20-bullseye |
3.9.19 | 20.16.0 | bullseye |
python3.9-nodejs20-slim |
3.9.19 | 20.16.0 | slim |
python3.9-nodejs20-alpine |
3.9.19 | 20.16.0 | alpine |
python3.9-nodejs18 |
3.9.19 | 18.20.4 | bookworm |
python3.9-nodejs18-bullseye |
3.9.19 | 18.20.4 | bullseye |
python3.9-nodejs18-slim |
3.9.19 | 18.20.4 | slim |
python3.9-nodejs18-alpine |
3.9.19 | 18.20.4 | alpine |
python3.8-nodejs22 |
3.8.19 | 22.6.0 | bookworm |
python3.8-nodejs22-bullseye |
3.8.19 | 22.6.0 | bullseye |
python3.8-nodejs22-slim |
3.8.19 | 22.6.0 | slim |
python3.8-nodejs22-alpine |
3.8.19 | 22.6.0 | alpine |
python3.8-nodejs20 |
3.8.19 | 20.16.0 | bookworm |
python3.8-nodejs20-bullseye |
3.8.19 | 20.16.0 | bullseye |
python3.8-nodejs20-slim |
3.8.19 | 20.16.0 | slim |
python3.8-nodejs20-alpine |
3.8.19 | 20.16.0 | alpine |
python3.8-nodejs18 |
3.8.19 | 18.20.4 | bookworm |
python3.8-nodejs18-bullseye |
3.8.19 | 18.20.4 | bullseye |
python3.8-nodejs18-slim |
3.8.19 | 18.20.4 | slim |
python3.8-nodejs18-alpine |
3.8.19 | 18.20.4 | alpine |
Lovely! These tags are kept updated automatically when new minor or patch version are released. The python script in src/docker_python_nodejs handling this is run twice a day on GitHub actions.
Image tags are built for linux/amd64 and linux/arm64 platforms, except for alpine which is only linux/amd64. See issue #70 for details.
Supported versions
| Python version | Start | End |
|---|---|---|
| 3.12 | 2023-10-02 | 2028-10 |
| 3.11 | 2022-10-24 | 2027-10 |
| 3.10 | 2021-10-04 | 2026-10 |
| 3.9 | 2020-10-05 | 2025-10 |
| 3.8 | 2019-10-14 | 2024-10 |
| Node.js version | Start | End |
|---|---|---|
| v22 | 2024-04-24 | 2027-04-30 |
| v20 | 2023-04-18 | 2026-04-30 |
| v18 | 2022-04-19 | 2025-04-30 |
Versions are kept up to date using official sources. For Python we scrape the Supported Versions table at devguide.python.org/versions and for Node.js we fetch the release schedule JSON from github.com/nodejs/Release.
Typical tasks
# Pull from Docker Hub
docker pull nikolaik/python-nodejs:latest
# Build from GitHub
docker build -t nikolaik/python-nodejs github.com/nikolaik/docker-python-nodejs
# Run image
docker run -it nikolaik/python-nodejs bash
Use as base image
FROM nikolaik/python-nodejs:latest
USER pn
WORKDIR /home/pn/app
All images have a default user pn with uid 1000 and gid 1000.
Disclaimer
This is experimental and might break from time to time. Use at your own risk!