Skip to content

Instantly share code, notes, and snippets.

@yunusemreayhan
Last active December 14, 2018 08:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yunusemreayhan/dab7687d494b087e8f2180c5f2d44025 to your computer and use it in GitHub Desktop.
Save yunusemreayhan/dab7687d494b087e8f2180c5f2d44025 to your computer and use it in GitHub Desktop.
sample ubuntu compile machine
FROM ubuntu:18.04
CMD /bin/bash
RUN apt-get update --upgrade
RUN apt-get install -y make cmake g++ gcc git libczmq-dev libwebsockets-dev build-essential
RUN apt-get -y install sudo --no-install-recommends apt-utils
RUN adduser --disabled-password --gecos '' yunus
RUN adduser yunus sudo
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN mkdir -p /home/yunus/repo
USER yunus
WORKDIR /home/yunus
RUN sudo apt-get -y install vim
RUN git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
RUN sh ~/.vim_runtime/install_awesome_vimrc.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment