Skip to content

Instantly share code, notes, and snippets.

@minhoryang
Last active September 20, 2024 02:21
Show Gist options
  • Save minhoryang/2a36fa760fa7a6cf9dce09d8c9ef532d to your computer and use it in GitHub Desktop.
Save minhoryang/2a36fa760fa7a6cf9dce09d8c9ef532d to your computer and use it in GitHub Desktop.
docker-ubuntu-build-essential

docker-ubuntu-build-essential

docker build -t ubuntu-build-esssential .

docker run -t -i ubuntu-build-esssential

FROM ubuntu:latest
RUN apt-get update
RUN apt-get install -y --no-install-recommends apt-utils build-essential sudo git
RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
USER docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment