fork/cargo
git clone https://git.julia.blue/fork/cargo
d27e95e48
master
1FROM alpine: 3.23 2 3RUN apk add --no-cache openssh git 4RUN apk upgrade --no-cache libcrypto3 5RUN ssh-keygen -A 6 7RUN addgroup -S testuser && adduser -S testuser -G testuser -s /bin/ash 8# NOTE: Ideally the password should be set to *, but I am uncertain how to do 9# that in alpine. It shouldn't matter since PermitEmptyPasswords is "no". 10RUN passwd -u testuser 11 12RUN mkdir /repos && chown testuser /repos 13COPY --chown=testuser:testuser bar /repos/bar 14USER testuser 15WORKDIR /repos/bar 16RUN git config --global user.email "testuser@example.com" &&\ 17 git config --global user.name "Test User" &&\ 18 git init -b master . &&\ 19 git add Cargo.toml src &&\ 20 git commit -m "Initial commit" &&\ 21 cd .. &&\ 22 git clone --bare bar bar.git &&\ 23 rm -rf bar 24WORKDIR / 25USER root 26 27EXPOSE 22 28 29ENTRYPOINT ["/usr/sbin/sshd" ,"-D" ,"-E" ,"/var/log/auth.log" ]