772b630d94350551e6cce8ad2600547de49dd302
[gd/samba-autobuild/.git] / bootstrap / dists / ubuntu1604 / Dockerfile
1 FROM ubuntu:16.04
2
3 # we will use this image to run ci, these ENV vars are important
4 ENV CC="ccache gcc"
5
6 ADD bootstrap.sh /tmp/bootstrap.sh
7 # need root permission, do it before USER samba
8 RUN bash /tmp/bootstrap.sh
9
10 # make test can not work with root, so we have to create a new user
11 RUN useradd -m -s /bin/bash samba && \
12     mkdir -p /etc/sudoers.d && \
13     echo "samba ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/samba
14
15 USER samba
16 WORKDIR /home/samba
17 # samba tests rely on this
18 ENV USER=samba LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8