Skip to content

Instantly share code, notes, and snippets.

@baseboxorg
Forked from alext234/Dockerfile
Created March 13, 2018 04:58
Show Gist options
  • Save baseboxorg/ed80d53309d6a66ff9a8f37a0ed8e58a to your computer and use it in GitHub Desktop.
Save baseboxorg/ed80d53309d6a66ff9a8f37a0ed8e58a to your computer and use it in GitHub Desktop.
A simple ubuntu container with gcc and cmake
FROM ubuntu:xenial
MAINTAINER alex
# update and install dependencies
RUN apt-get update \
&& apt-get install -y \
software-properties-common \
wget \
&& add-apt-repository -y ppa:ubuntu-toolchain-r/test \
&& apt-get update \
&& apt-get install -y \
make \
git \
curl \
vim \
vim-gnome \
&& apt-get install -y cmake=3.5.1-1ubuntu3 \
&& apt-get install -y \
gcc-4.9 g++-4.9 gcc-4.9-base \
gcc-4.8 g++-4.8 gcc-4.8-base \
gcc-4.7 g++-4.7 gcc-4.7-base \
gcc-4.6 g++-4.6 gcc-4.6-base \
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 100 \
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment