diff options
author | Christian Poessinger <christian@poessinger.com> | 2018-10-07 14:59:26 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2018-10-07 14:59:34 +0200 |
commit | 751f1f95950a4157e3cb95cba88a0027a2050492 (patch) | |
tree | 6ee1edda38eb3523d8f6c203d661d55a588015e9 /Dockerfile | |
parent | 10deb82cbf0f63c6e7012a94fc2a7eead999ffea (diff) | |
download | vyos-documentation-751f1f95950a4157e3cb95cba88a0027a2050492.tar.gz vyos-documentation-751f1f95950a4157e3cb95cba88a0027a2050492.zip |
Dockerfile: switch from Ubuntu 18.04 (Bionic) to Debian 9 (Stretch)
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,7 +1,7 @@ # Must be run with --privileged flag # Recommended to run the container with a volume mapped # in order to easy exprort images built to "external" world -FROM ubuntu:18.04 +FROM debian:stretch RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ vim \ @@ -16,12 +16,12 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ texlive-latex-extra sudo \ && rm -rf /var/lib/apt/lists/* -RUN groupadd -g 1000 ubuntu -RUN useradd -d /home/ubuntu -ms /bin/bash -g 1000 -u 1000 ubuntu && \ - echo "ubuntu:ubuntu" | chpasswd && \ - adduser ubuntu sudo +RUN groupadd -g 1000 debian +RUN useradd -d /home/debian -ms /bin/bash -g 1000 -u 1000 debian && \ + echo "debian:debian" | chpasswd && \ + adduser debian sudo RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers -USER ubuntu +USER debian WORKDIR ~ |