Added stretch docker image
authorvarac <varacanero@zeromail.org>
Sat, 18 Feb 2017 20:11:56 +0000 (21:11 +0100)
committervarac <varacanero@zeromail.org>
Sat, 18 Feb 2017 20:11:56 +0000 (21:11 +0100)
docker/stretch/Dockerfile [new file with mode: 0644]

diff --git a/docker/stretch/Dockerfile b/docker/stretch/Dockerfile
new file mode 100644 (file)
index 0000000..2db107b
--- /dev/null
@@ -0,0 +1,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