Skip to content

Commit 9ceba63

Browse files
committedJul 11, 2015
Dockerfile: run as non-root
1 parent da1454c commit 9ceba63

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed
 

‎Dockerfile

+2-17
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,10 @@ MAINTAINER Anil Madhavapeddy <anil@recoil.org>
33

44
# add entrypoint script
55
#
6+
USER root
67
ADD .opam-config-exec /usr/bin/opam-config-exec
78
RUN chmod 755 /usr/bin/opam-config-exec
8-
9-
10-
# add mirage user
11-
#
12-
RUN adduser --gecos "" mirage && \
13-
passwd -l mirage
14-
15-
USER mirage
16-
ENV HOME /home/mirage
17-
WORKDIR /home/mirage
18-
19-
20-
# git config
21-
#
22-
RUN git config --global user.email "mirage@example.com" && \
23-
git config --global user.name "Mirage"
24-
9+
USER opam
2510

2611
# setup opam environment
2712
#

0 commit comments

Comments
 (0)
Please sign in to comment.