[tryhard]

This commit is contained in:
2024-11-23 19:13:12 +01:00
parent 49a3034e8e
commit 9e485b4b05
2 changed files with 22 additions and 22 deletions

View File

@@ -2,29 +2,29 @@
# Container image that runs your code # Container image that runs your code
FROM debian:bullseye FROM debian:bullseye
ENV NODE_MAJOR 16 # ENV NODE_MAJOR 16
# install dependancies packages # # install dependancies packages
RUN apt-get update \ # RUN apt-get update \
&& apt-get install -y curl \ # && apt-get install -y curl \
dnsutils \ # dnsutils \
git \ # git \
ca-certificates \ # ca-certificates \
gnupg # gnupg
# NODE # # NODE
RUN install -m 0755 -d /etc/apt/keyrings # RUN install -m 0755 -d /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg # RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list # RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
# DOCKER # # DOCKER
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg # RUN curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
RUN chmod a+r /etc/apt/keyrings/docker.gpg # RUN chmod a+r /etc/apt/keyrings/docker.gpg
RUN echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null # RUN echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] 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-get update \
&& apt-get install -y nodejs \ # && apt-get install -y nodejs \
docker-ce \ # docker-ce \
docker-ce-cli \ # docker-ce-cli \
containerd.io \ # containerd.io \
docker-buildx-plugin # docker-buildx-plugin