node-python-docker image / build (arm64) (push) Successful in 1m27s
node-python image / build (amd64) (push) Successful in 2m5s
node-python image / build (arm64) (push) Successful in 1m1s
node-python image / amend-manifest (push) Successful in 12s
node-python-docker image / build (amd64) (push) Successful in 3m56s
node-python-docker image / amend-manifest (push) Successful in 16s
- New node-python-docker image (node + python3 venv + docker CLI + git) for CI jobs that need all three - Spread weekly build cron 2h apart (UTC Sunday): docker-node 00:00, node-python 02:00, node-go 04:00, node-python-docker 06:00 - Drop python3-distutils from node-python (removed in Debian trixie / Python 3.13, would break the weekly build)
21 lines
555 B
Docker
21 lines
555 B
Docker
FROM node:lts-slim
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
# Cài git + Python 3.11 (Debian stable)
|
|
RUN set -eux; \
|
|
apt-get update; \
|
|
apt-get install -y --no-install-recommends \
|
|
git \
|
|
python3 python3-pip python3-venv; \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# Tạo virtualenv mặc định cho mọi thứ Python trong container
|
|
# => bạn dùng `python`/`pip` là vào venv này luôn
|
|
RUN python3 -m venv /opt/venv \
|
|
&& /opt/venv/bin/python -m pip install --upgrade pip setuptools wheel
|
|
|
|
ENV PATH="/opt/venv/bin:${PATH}"
|
|
|
|
WORKDIR /app
|