You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
335 B
Docker
12 lines
335 B
Docker
3 years ago
|
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
|