stage for external build

This commit is contained in:
Eason 2024-02-18 14:03:48 +08:00
parent a0ced2386d
commit 7bb5005765
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
FROM node:20-bullseye-slim
# Add Docker's official GPG key:
RUN apt update
RUN apt -y install ca-certificates curl
RUN install -m 0755 -d /etc/apt/keyrings
RUN curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
RUN chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
RUN 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" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null
RUN apt-get update
RUN apt install -y docker-ce-cli docker-buildx-plugin docker-compose-plugin
# FIXME install just