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
FROM ubuntu:latest | |
# Update package list and install necessary packages | |
RUN apt-get update && apt-get install -y --no-install-recommends apt-utils build-essential sudo git | |
# Create the 'docker' user, set password, and add the user to the sudo group using 'usermod' | |
RUN useradd -m docker && echo "docker:docker" | chpasswd && usermod -aG sudo docker | |
# Switch to the 'docker' user | |
USER docker |