summaryrefslogtreecommitdiff
path: root/docker/jessie/Dockerfile
blob: fa245c09329772c35478d7126468e759de4d2b8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 -y dist-upgrade \
  && 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