Skip to content

Instantly share code, notes, and snippets.

@aharonamir
Last active June 21, 2018 14:00
Show Gist options
  • Save aharonamir/016f9c0fc3efdeae5670876a1ed1462a to your computer and use it in GitHub Desktop.
Save aharonamir/016f9c0fc3efdeae5670876a1ed1462a to your computer and use it in GitHub Desktop.
FROM ubuntu:trusty
LABEL maintainer="[email protected]"
RUN apt-get update
RUN apt-get install -y software-properties-common python-software-properties
RUN add-apt-repository ppa:ubuntu-toolchain-r/test
RUN apt-get update
RUN apt-get install gcc-4.9 g++-4.9 cmake gdb gdbserver -y && \
apt-get clean autoclean && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 999 \
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 999 \
&& update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-4.9 999 \
&& update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-4.9 999
RUN useradd -ms /bin/bash develop
RUN echo "develop ALL=(ALL:ALL) ALL" >> /etc/sudoers
# for gdbserver
EXPOSE 2000
USER develop
VOLUME "/home/develop/project"
WORKDIR "/home/develop/project"
@aharonamir
Copy link
Author

deleting my email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment