blob: 79cfac08624187b7c2713cead9253207bf173a37 [file] [log] [blame]
Mads Ager418d1ca2017-05-22 09:35:49 +02001# Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file
2# for details. All rights reserved. Use of this source code is governed by a
3# BSD-style license that can be found in the LICENSE file.
Søren Gjesse79b9e1e2017-09-26 09:29:41 -07004FROM debian:stretch
Mads Ager418d1ca2017-05-22 09:35:49 +02005
6RUN apt-get update && apt-get install -y \
7 bzip2 \
8 g++ \
9 gcc \
10 git \
11 nano \
12 python \
13 python-dev \
14 sed \
15 texinfo \
16 unzip \
17 wget \
Søren Gjesse79b9e1e2017-09-26 09:29:41 -070018 openjdk-8-jdk \
Mads Ager418d1ca2017-05-22 09:35:49 +020019 sudo
20
Mads Ager418d1ca2017-05-22 09:35:49 +020021# Set the timezone.
22RUN echo "Europe/Copenhagen" > /etc/timezone && \
23 dpkg-reconfigure -f noninteractive tzdata
24
25ENV user r8
26
27# Create user without password and sudo access.
28RUN useradd -m -G dialout,sudo $user && \
29 echo "$user ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/$user && \
30 chmod 440 /etc/sudoers.d/$user
31
32USER $user
33
34CMD (cd /home/$user && /bin/bash)