2021-02-25 19:11:00 +00:00
|
|
|
FROM ubuntu:latest
|
|
|
|
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2024-05-24 08:49:13 +00:00
|
|
|
RUN apt-get update && apt-get -y install apt-utils adduser sudo
|
2021-02-25 19:11:00 +00:00
|
|
|
|
2023-01-31 18:06:09 +00:00
|
|
|
RUN useradd -m testuser && echo "testuser:testuserpw" | chpasswd && adduser testuser sudo
|
|
|
|
RUN echo "testuser ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/testuser
|
2023-01-18 08:10:19 +00:00
|
|
|
|
2021-02-25 19:11:00 +00:00
|
|
|
USER testuser
|
|
|
|
CMD /bin/bash
|
|
|
|
WORKDIR /home/testuser
|