provs/Dockerfile

14 lines
429 B
Text
Raw Normal View History

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