Skip to content

Instantly share code, notes, and snippets.

View yashgyy's full-sized avatar
😀

Yash Singhal yashgyy

😀
View GitHub Profile
@yashgyy
yashgyy / Dockerfile
Last active September 20, 2024 02:22 — forked from minhoryang/Dockerfile
docker-ubuntu-build-essential
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