0615b309de3a07581aa841c4ed0cb812eed50648
[metze/samba/wip.git] / bootstrap / dists / debian9 / Dockerfile
1 FROM debian:9
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