Skip to content

Commit 96a903d

Browse files
fix(dockerfiles): create files with same uid as jenkins (#46)
1 parent 6cbd39f commit 96a903d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

rootfs/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ FROM golang:1.6.3
22

33
ENV GLIDE_VERSION=v0.11.0 GLIDE_HOME=/root GO15VENDOREXPERIMENT=1
44

5+
RUN addgroup --gid 999 godev
6+
RUN adduser --system \
7+
--shell /bin/bash \
8+
--disabled-password \
9+
--gid 999 \
10+
--uid 999 \
11+
godev
12+
513
RUN apt-get update && apt-get install -y \
614
jq \
715
man \
@@ -21,3 +29,5 @@ RUN apt-get update && apt-get install -y \
2129
WORKDIR /go
2230

2331
COPY . /
32+
33+
USER godev

0 commit comments

Comments
 (0)