forked from tttapa/VSCode-Docker-Cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.win
26 lines (20 loc) · 841 Bytes
/
Dockerfile.win
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
# https://medium.com/@aharon.amir/develop-c-on-docker-with-vscode-98fb85b818b2
FROM ubuntu:latest
RUN apt-get update
RUN apt-get install -y git gcc-8 g++-8 cmake gdb gdbserver && \
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-8 999 \
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 999 \
&& update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-8 999 \
&& update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-8 999
RUN useradd -ms /bin/bash develop
RUN echo "develop ALL=(ALL:ALL) ALL" >> /etc/sudoers
# for gdbserver
EXPOSE 2000
USER develop
WORKDIR /home/develop
RUN git clone https://github.com/google/googletest.git
VOLUME /home/develop/eagle
WORKDIR /home/develop/eagle/build