Last active
March 28, 2020 07:39
-
-
Save olegslavkin/3e7c703d6f86e755e41c8dd7e3733c78 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARG UBUNTUREL=19.10 | |
FROM ubuntu:$UBUNTUREL | |
MAINTAINER Oleg Slavkin <[email protected]> | |
ARG DEFUSER=user | |
ARG DEFUID=1000 | |
ARG DEFGID=1000 | |
RUN sed -i 's\archive.ubuntu.com\mirror.yandex.ru\g' /etc/apt/sources.list && \ | |
sed -i 's\security.ubuntu.com\mirror.yandex.ru\g' /etc/apt/sources.list | |
RUN apt-get update && apt-get upgrade -y && apt install -y sudo && \ | |
groupadd -g 999 wheel && \ | |
groupadd -g $DEFGID $DEFUSER && \ | |
useradd -M -N -s /bin/bash -u $DEFUID -g $DEFGID -G wheel $DEFUSER | |
COPY sudoers /etc/sudoers | |
# sudo docker build --build-arg DEFUSER=$(whoami) --build-arg DEFUID=$(id -u) --build-arg DEFGID=$(id -g) --build-arg UBUNTUREL="19.10" -t $(basename $(pwd)) . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root ALL=(ALL) ALL | |
%wheel ALL=(ALL) NOPASSWD: ALL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment