Skip to content

Commit 30dba22

Browse files
committed
Merge pull request #2 from codeclimate/gd-user
Add app user
2 parents 6ef9d64 + bcc4094 commit 30dba22

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ RUN apk --update add ruby ruby-dev ruby-bundler build-base && \
88
bundle install -j 4 && \
99
apk del build-base && rm -fr /usr/share/ri
1010

11+
RUN adduser -u 9000 -D app
12+
USER app
13+
1114
COPY . /usr/src/app
1215

1316
CMD ["/usr/src/app/bin/codeclimate-rubocop"]

0 commit comments

Comments
 (0)