Skip to content

Commit 9f2d400

Browse files
committed
Fix permissions and ownership for .ssh
1 parent f39edb1 commit 9f2d400

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ FROM alpine:3.21
77
RUN apk add --no-cache git github-cli bash \
88
&& adduser -u 1100 -s /sbin/nologin -D git \
99
&& mkdir -p /home/git/.ssh \
10-
&& chown 1100:1100 /home/git/.ssh
10+
&& chown 1100:1100 /home/git/.ssh \
11+
&& chmod 700 /home/git/.ssh
1112

1213
ADD files/known_hosts /home/git/.ssh/known_hosts
1314

0 commit comments

Comments
 (0)