summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2023-03-11 22:33:28 +0200
committerJustin Wernick <justin@worthe-it.co.za>2023-03-11 22:33:28 +0200
commit85d187133ddcea5284529bc57caaa7f66f73ab95 (patch)
tree62852b8bda4b2982ec240eb762eaa2c4892859c3 /Dockerfile
parent5b52ed7ed242ce40cfd331a2fdb78e106413e138 (diff)
Fix docker shell issue
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 72daa5a..7688ca1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -12,12 +12,13 @@ RUN sed -i /etc/ssh/sshd_config \
-e 's/#PermitEmptyPasswords.*/PermitEmptyPasswords yes/'
RUN adduser --shell /usr/bin/shackle shukkie && passwd -d shukkie
+COPY . /opt/shackle
ARG SHELL=target/debug/shackle
-COPY ${SHELL} /usr/bin/shackle
+RUN cp /opt/shackle/${SHELL} /usr/bin/shackle
ENTRYPOINT service ssh start && echo "Ready" && bash
-# docker build -t shackle-server --build-arg CHANNEL=release ./
+# docker build -t shackle-server --build-arg SHELL=target/debug/shackle ./
# docker run -it -p 2022:22 shackle-server
# ssh -p 2022 shukkie@localhost \ No newline at end of file