Initial commit
This commit is contained in:
23
test/Dockerfile
Normal file
23
test/Dockerfile
Normal file
@ -0,0 +1,23 @@
|
||||
# Simple SSH server for testing
|
||||
|
||||
FROM alpine:3.20
|
||||
|
||||
|
||||
RUN <<EOF
|
||||
apk --update add dropbear docker
|
||||
adduser -D test
|
||||
mkdir /home/test/.ssh
|
||||
chown test:test /home/test/.ssh
|
||||
EOF
|
||||
|
||||
COPY cert/domain.crt /usr/local/share/ca-certificates
|
||||
|
||||
RUN update-ca-certificates
|
||||
|
||||
COPY --chown=test:test test-container-files/authorized_keys /home/test/.ssh
|
||||
|
||||
|
||||
# Non-standard ssh port
|
||||
EXPOSE 22140
|
||||
|
||||
CMD ["dropbear", "-R", "-E", "-F", "-p", "22140"]
|
||||
Reference in New Issue
Block a user