-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.ubuntu.gcc4.9
More file actions
29 lines (21 loc) · 886 Bytes
/
Copy pathDockerfile.ubuntu.gcc4.9
File metadata and controls
29 lines (21 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM ubuntu:trusty
LABEL maintainer="aharon.amir@gmail.com"
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"