blob: f89ca103286861c9b8ff57a6c1a0b8791a440d02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
FROM debian:bookworm
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
git openssh-server \
&& rm -rf /var/lib/apt/lists/*
EXPOSE 22
RUN sed -i /etc/ssh/sshd_config \
-e 's/#PasswordAuthentication.*/PasswordAuthentication yes/' \
-e 's/#PermitEmptyPasswords.*/PermitEmptyPasswords yes/'
RUN adduser --shell /usr/bin/shackle shukkie && passwd -d shukkie
ARG SHELL=target/debug/shackle
COPY ${SHELL} /usr/bin/shackle
ENTRYPOINT service ssh start && bash
# docker build -t shackle-server --build-arg CHANNEL=release ./
# docker run -it -p 2022:22 shackle-server
# ssh -p 2022 shukkie@localhost
|