Skip to content

Instantly share code, notes, and snippets.

@youpong
Created February 25, 2023 18:37
Show Gist options
  • Save youpong/5f6c3f05ff9bdd5c4380317de597f32f to your computer and use it in GitHub Desktop.
Save youpong/5f6c3f05ff9bdd5c4380317de597f32f to your computer and use it in GitHub Desktop.
FROM ubuntu:latest
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update &&\
apt-get install -y --no-install-recommends \
sudo curl ca-certificates \
git make g++ gdb \
clang-format \
doxygen graphviz &&\
apt-get -y clean &&\
rm -rf /var/lib/apt/lists/*
RUN adduser --disabled-password --gecos '' user
RUN echo 'user ALL=(root) NOPASSWD:ALL' \
> /etc/sudoers.d/user &&\
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' \
>> /home/user/.profile
USER user
WORKDIR /home/user
RUN curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh |\
/bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment