Last active
June 21, 2018 14:00
-
-
Save aharonamir/016f9c0fc3efdeae5670876a1ed1462a to your computer and use it in GitHub Desktop.
This file contains hidden or 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: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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
deleting my email