summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2023-03-30 00:03:59 +0200
committerJustin Wernick <justin@worthe-it.co.za>2023-03-30 00:03:59 +0200
commit3c59f9494f6b3cf9c8f9fb6cca0580d053329cf0 (patch)
treed5c80b5cdf79c8e377c085de5bde2af6abbecc7c /Dockerfile
parent745cd8ab27480a3cf516a2684db2c4fd7cf2144c (diff)
Update path restrictions to allow shared repos
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index a743200..96c605f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -12,8 +12,14 @@ RUN sed -i /etc/ssh/sshd_config \
-e 's/#PermitEmptyPasswords.*/PermitEmptyPasswords yes/'
RUN adduser --shell /usr/bin/shackle shukkie && passwd -d shukkie
-RUN mkdir -p /home/shukkie/git/shukkie && chown -R shukkie:shukkie /home/shukkie/git
-RUN git init --bare /home/shukkie/disallowed.git && chown -R shukkie:shukkie /home/shukkie/disallowed.git
+RUN mkdir -p /home/shukkie/git/shukkie && \
+ chown -R shukkie:shukkie /home/shukkie/git
+RUN groupadd shukkies-company --users shukkie && \
+ mkdir -p /home/shukkie/git/shukkies-company && \
+ chmod 2770 /home/shukkie/git/shukkies-company && \
+ chown -R root:shukkies-company /home/shukkie/git/shukkies-company
+RUN git init --bare /home/shukkie/disallowed.git && \
+ chown -R shukkie:shukkie /home/shukkie/disallowed.git
COPY . /opt/shackle
ARG SHELL=target/debug/shackle