Rust package-manager & rust repository by @rust-lang. AI agent rules & system prompts with 15k stars.
docker pull rust-lang/cargo:latest
docker run -d --name cargo -p 22:22 --restart always rust-lang/cargo:latest
podman run -d --name cargo -p 22:22 --restart always rust-lang/cargo:latest
skopeo inspect docker://docker.io/rust-lang/cargo:latest
oras pull rust-lang/cargo:latest
FROM alpine:3.24
RUN apk add --no-cache openssh git
RUN apk upgrade --no-cache libcrypto3
RUN ssh-keygen -A
RUN addgroup -S testuser && adduser -S testuser -G testuser -s /bin/ash
# NOTE: Ideally the password should be set to *, but I am uncertain how to do
# that in alpine. It shouldn't matter since PermitEmptyPasswords is "no".
RUN passwd -u testuser
RUN mkdir /repos && chown testuser /repos
COPY --chown=testuser:testuser bar /repos/bar
USER testuser
WORKDIR /repos/bar
RUN git config --global user.email "[email protected]" &&\
git config --global user.name "Test User" &&\
git init -b master . &&\
git add Cargo.toml src &&\
git commit -m "Initial commit" &&\
cd .. &&\
git clone --bare bar bar.git &&\
rm -rf bar
WORKDIR /
USER root
EXPOSE 22
ENTRYPOINT ["/usr/sbin/sshd", "-D", "-E", "/var/log/auth.log"]