Dockerfile: don't install unneeded packages, dump Go RACE

This commit is contained in:
Péter Szilágyi 2015-04-18 19:14:35 +03:00
parent 5667618e7b
commit 8286e4c6e4

View file

@ -9,16 +9,17 @@ ENV DEBIAN_FRONTEND noninteractive
## Install base dependencies
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y git mercurial build-essential software-properties-common wget \
pkg-config libgmp3-dev libreadline6-dev libpcre3-dev libpcre++-dev
pkg-config libgmp3-dev libreadline6-dev libpcre3-dev libpcre++-dev --no-install-recommends
## Install Qt5.4.1 (not required for CLI)
# RUN add-apt-repository ppa:beineri/opt-qt541-trusty -y && \
# apt-get install -y qt54quickcontrols qt54webengine mesa-common-dev libglu1-mesa-dev
# ENV PKG_CONFIG_PATH /opt/qt54/lib/pkgconfig
# Install Go
# Install Go, dump the race detector
RUN wget https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go*.tar.gz && \
tar -C /usr/local -xzf go*.tar.gz && \
rm -rf /usr/local/go/pkg/linux_amd64_race && \
go version
# Workaround, to make sure that docker's cache is invalidated whenever the git repo changes