I want to use a dind docker image as a base image and then install jenkins inside it. this is my dockerfile : ...
FROM docker:20.10.11-dind-alpine3.14
USER root
RUN apk add curl &&\
curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io.key | tee &&\
/usr/share/keyrings/jenkins-keyring.asc > /dev/null &&\
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] &&\
https://pkg.jenkins.io/debian-stable binary/ | tee &&\
/etc/apt/sources.list.d/jenkins.list > /dev/null &&\
apt-get update &&\
apt-get install jenkins &&\
apk update && apk upgrade && \
apk add --update nodejs npm
...
i took the installation commands from jenkins installation guide for ubunto but when i start to build the image i get this error :
...
/bin/sh: /usr/share/keyrings/jenkins-keyring.asc: not found
...