Skip to content

Instantly share code, notes, and snippets.

@minhoryang
Last active January 21, 2024 14:29
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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