Skip to content

Commit

Permalink
Create dedicated build user for packaging container
Browse files Browse the repository at this point in the history
  • Loading branch information
olivergondza committed Sep 5, 2016
1 parent 135a490 commit 14d8d7f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
FROM ubuntu:14.04
MAINTAINER svanoort <samvanoort@gmail.com>

# User id of the build user
ARG uid=4242
ENV uid $uid

# Group id of the build user
ARG gid=4242
ENV gid $gid

RUN groupadd builder -g $gid && useradd builder -u $uid -g $gid -m -d /home/builder

# Dependencies plus vim for convenience, wget if you're trying to get fancy
RUN apt-get update \
Expand Down

0 comments on commit 14d8d7f

Please sign in to comment.