summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorGravatar Matthias Lucas Jaros <jarlucmat@mailbox.org>2025-10-20 10:20:42 +0200
committerGravatar Matthias Lucas Jaros <jarlucmat@mailbox.org>2025-10-20 10:20:42 +0200
commit9d9355a379f8a9922645ecd87b66f68acbb6bc89 (patch)
tree3491b69ae5d327556f0e5d4bd732ec6208746ece /Dockerfile
parentbaaa4d83c98b42a1df98e70b972774ad8f5b8ead (diff)
Moved files to src and renamed variables
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile18
1 files changed, 9 insertions, 9 deletions
diff --git a/Dockerfile b/Dockerfile
index 10e70d3..e773b1c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,17 +1,17 @@
-FROM alpine
+FROM alpine:latest
RUN apk add --no-cache openssh-server fish git sudo
+# default uid for git user who has access to all repos
ENV GIT_UID=1000
# Modified ssh conf with disabled root login and no password authentication
-COPY ssh.conf /etc/ssh/sshd_config.d/
-COPY sudo-git /etc/sudoers.d/
+COPY src/ssh.conf /etc/ssh/sshd_config.d/
+COPY src/sudo-git /etc/sudoers.d/
-# required for permission check
-COPY run /usr/local/bin/
-RUN chmod +x /usr/local/bin/run
+# copy scrips
+COPY src/run /usr/local/bin/
+COPY src/init /usr/local/bin/
+RUN chmod 755 /usr/local/bin/run
+RUN chmod 755 /usr/local/bin/init
-# required for starting
-COPY init /usr/local/bin/
-RUN chmod +x /usr/local/bin/init
ENTRYPOINT ["/usr/local/bin/init"]