Add xenial_amd64 ubuntu docker image
authorvarac <varacanero@zeromail.org>
Wed, 8 Mar 2017 16:35:12 +0000 (17:35 +0100)
committervarac <varacanero@zeromail.org>
Wed, 8 Mar 2017 16:35:12 +0000 (17:35 +0100)
docker/xenial_amd64/Dockerfile [new file with mode: 0644]

diff --git a/docker/xenial_amd64/Dockerfile b/docker/xenial_amd64/Dockerfile
new file mode 100644 (file)
index 0000000..6810a81
--- /dev/null
@@ -0,0 +1,28 @@
+FROM ubuntu:16.04
+
+MAINTAINER LEAP Encryption Access Project <info@leap.se>
+
+RUN apt-get update \
+  && apt-get install -y --no-install-recommends \
+    git \
+    locales \
+    sudo \
+    ca-certificates \
+    wget
+
+RUN echo "deb http://deb.bitmask.net/debian xenial main" > /etc/apt/sources.list.d/leap-client-repo.list \
+  && wget -O- https://dl.bitmask.net/apt.key | apt-key add -
+
+RUN apt-get update \
+  && apt-get -y dist-upgrade \
+  && apt-get install -y --no-install-recommends leap-archive-keyring \
+  && apt-get clean && \
+     rm -rf /var/lib/apt/lists/*
+
+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