| # Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file |
| # for details. All rights reserved. Use of this source code is governed by a |
| # BSD-style license that can be found in the LICENSE file. |
| RUN apt-get update && apt-get install -y \ |
| RUN echo "Europe/Copenhagen" > /etc/timezone && \ |
| dpkg-reconfigure -f noninteractive tzdata |
| # Create user without password and sudo access. |
| RUN useradd -m -G dialout,sudo $user && \ |
| echo "$user ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/$user && \ |
| chmod 440 /etc/sudoers.d/$user |
| CMD (cd /home/$user && /bin/bash) |