summaryrefslogtreecommitdiff
path: root/docker/jessie/Dockerfile
blob: cffffd525380b41925071a4b405fa4798b108468 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM debian:jessie-backports

MAINTAINER LEAP Encryption Access Project <info@leap.se>
LABEL Description="Bare debian jessie 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 install -y --no-install-recommends \
    git \
    locales \
    sudo \
  && 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