node-python image
Some checks failed
docker-node image / build (arm64) (push) Successful in 1m9s
node-python image / build (amd64) (push) Failing after 1m33s
node-python image / build (arm64) (push) Failing after 23s
node-python image / amend-manifest (push) Has been skipped
docker-node image / build (amd64) (push) Successful in 2m55s
docker-node image / amend-manifest (push) Successful in 14s
Some checks failed
docker-node image / build (arm64) (push) Successful in 1m9s
node-python image / build (amd64) (push) Failing after 1m33s
node-python image / build (arm64) (push) Failing after 23s
node-python image / amend-manifest (push) Has been skipped
docker-node image / build (amd64) (push) Successful in 2m55s
docker-node image / amend-manifest (push) Successful in 14s
This commit is contained in:
@@ -1,19 +1,20 @@
|
||||
# Node LTS 24 trên Debian 12 (Bookworm) bản slim
|
||||
FROM node:latest
|
||||
FROM node:22-slim
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive \
|
||||
DOCKER_HOST=unix:///var/run/docker.sock
|
||||
|
||||
# Cài Docker CLI từ repo chính thức của Docker (lấy bản mới nhất)
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates curl gnupg git lsb-release \
|
||||
&& install -m 0755 -d /etc/apt/keyrings \
|
||||
&& curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc \
|
||||
&& chmod a+r /etc/apt/keyrings/docker.asc \
|
||||
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] \
|
||||
https://download.docker.com/linux/debian $(. /etc/os-release; echo $VERSION_CODENAME) stable" \
|
||||
> /etc/apt/sources.list.d/docker.list \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends docker-ce-cli \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
# Cài git + Docker CLI (repo chính thức Docker)
|
||||
RUN set -eux; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends ca-certificates curl gnupg lsb-release git; \
|
||||
install -m 0755 -d /etc/apt/keyrings; \
|
||||
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc; \
|
||||
chmod a+r /etc/apt/keyrings/docker.asc; \
|
||||
. /etc/os-release; \
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian ${VERSION_CODENAME} stable" \
|
||||
> /etc/apt/sources.list.d/docker.list; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends docker-ce-cli; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
Reference in New Issue
Block a user