fork/cargo

git clone https://git.julia.blue/fork/cargo

Weihang Lochore(deps): update alpine docker tag to v3.22 (#15616)21a67e29e

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