Skip to content

Commit 53c3d4c

Browse files
Merge pull request #36 from codefresh-io/cr-12464
CR-12464 non-root user
2 parents f0576f3 + ebebd7e commit 53c3d4c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,9 @@ RUN ssh-keyscan bitbucket.org >> /root/.ssh/known_hosts
2020
COPY ./start.sh /run/start.sh
2121
RUN chmod +x /run/start.sh
2222

23+
#add non-root user
24+
RUN addgroup -g 1000 nodegroup \
25+
&& adduser -u 1000 -G nodegroup -s /bin/sh -D nodeuser
26+
USER nodeuser
27+
2328
CMD ["/run/start.sh"]

service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 10.1.10
1+
version: 10.1.11

0 commit comments

Comments
 (0)