• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# 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.
4FROM debian:jessie
5
6RUN echo deb http://http.debian.net/debian jessie-backports main >> /etc/apt/sources.list
7
8RUN apt-get update && apt-get install -y \
9	bzip2 \
10	g++ \
11	gcc \
12	git \
13	nano \
14	python \
15	python-dev \
16	sed \
17	texinfo \
18	unzip \
19	wget \
20    sudo
21
22# Install OpenJDK 8 dependencies from jessi-backports (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=851667)
23RUN apt-get install -y -t jessie-backports openjdk-8-jre-headless ca-certificates-java
24RUN apt-get install -y openjdk-8-jdk
25
26# Set the timezone.
27RUN echo "Europe/Copenhagen" > /etc/timezone && \
28    dpkg-reconfigure -f noninteractive tzdata
29
30ENV user r8
31
32# Create user without password and sudo access.
33RUN useradd -m -G dialout,sudo $user && \
34    echo "$user ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/$user && \
35    chmod 440 /etc/sudoers.d/$user
36
37USER $user
38
39CMD (cd /home/$user && /bin/bash)
40