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 COPY . /opt/shackle ARG SHELL=target/debug/shackle RUN cp /opt/shackle/${SHELL} /usr/bin/shackle ENTRYPOINT service ssh start && echo "Ready" && bash # docker build -t shackle-server --build-arg SHELL=target/debug/shackle ./ # docker run -it -p 2022:22 shackle-server # ssh -p 2022 shukkie@localhost