summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..96e8186
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,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 CHANNEL=debug
+COPY target/${CHANNEL}/shackle /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 \ No newline at end of file