node-python - activate venv
All checks were successful
docker-node image / build (arm64) (push) Successful in 37s
docker-node image / build (amd64) (push) Successful in 1m5s
node-python image / build (arm64) (push) Successful in 55s
node-python image / build (amd64) (push) Successful in 1m41s
node-python image / amend-manifest (push) Successful in 12s
docker-node image / amend-manifest (push) Successful in 4s
All checks were successful
docker-node image / build (arm64) (push) Successful in 37s
docker-node image / build (amd64) (push) Successful in 1m5s
node-python image / build (arm64) (push) Successful in 55s
node-python image / build (amd64) (push) Successful in 1m41s
node-python image / amend-manifest (push) Successful in 12s
docker-node image / amend-manifest (push) Successful in 4s
This commit is contained in:
@@ -10,7 +10,11 @@ RUN set -eux; \
|
||||
python3 python3-pip python3-venv python3-distutils; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# (tuỳ chọn) nâng pip lên mới nhất
|
||||
RUN python3 -m pip install --upgrade pip
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user