You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
codefirst-docdeployer/Dockerfile

13 lines
326 B

FROM alpine:3.18
LABEL author="Maxime Batista"
RUN apk add --no-cache openssh-client rsync
RUN --mount=type=secret,id=ssh_private_key \
mkdir -m 700 /root/.ssh && \
cp /run/secrets/ssh_private_key /root/.ssh/id_rsa && \
chmod 600 /root/.ssh/id_rsa
COPY entrypoint.sh /
WORKDIR /drone/src
ENTRYPOINT ["/entrypoint.sh"]