Created
February 25, 2023 18:37
-
-
Save youpong/5f6c3f05ff9bdd5c4380317de597f32f to your computer and use it in GitHub Desktop.
This file contains 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 | |
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