blob: 2db107b63a747fb40a89ea8305caa4952ff5ae8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
FROM debian:stretch
MAINTAINER LEAP Encryption Access Project <info@leap.se>
LABEL Description="Bare debian stretch baseimage with few customisation" Vendor="LEAP" Version="1.x"
RUN sed -i 's/httpredir/deb/' /etc/apt/sources.list
RUN apt-get update \
&& apt-get -y dist-upgrade \
&& apt-get install -y --no-install-recommends \
git \
leap-archive-keyring \
locales \
sudo && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN echo "deb http://deb.leap.se/testing-platform jessie main" > /etc/apt/sources.list.d/leap.list && \
apt-get update
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8
RUN useradd -ms /bin/bash -G sudo cirunner
# allow all members of sudo group to execute any command without password
RUN sed -i 's/^%sudo.*/%sudo ALL=(ALL) NOPASSWD:ALL/' /etc/sudoers
|