add Dockerfile

This commit is contained in:
az 2021-02-25 20:11:00 +01:00
parent 19469a07fd
commit fad5ba7c40

11
Dockerfile Normal file
View file

@ -0,0 +1,11 @@
FROM ubuntu:latest
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get -y install apt-utils sudo
RUN useradd -m testuser && echo "testuser:testuser" | chpasswd && adduser testuser sudo
RUN echo "testuser ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/testuser
USER testuser
CMD /bin/bash
WORKDIR /home/testuser