1FROM ubuntu:17.10
2
3RUN rm /bin/sh && ln -s /bin/bash /bin/sh
4RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
5
6RUN apt-get -y update \
7  && apt-get -y install \
8  build-essential \
9  gcc \
10  apt-utils \
11  pkg-config \
12  software-properties-common \
13  apt-transport-https \
14  libssl-dev \
15  sudo \
16  bash \
17  curl \
18  tar \
19  git \
20  netcat \
21  bind9 \
22  dnsutils \
23  && apt-get -y update \
24  && apt-get -y upgrade \
25  && apt-get -y autoremove \
26  && apt-get -y autoclean
27
28ENV GOROOT /usr/local/go
29ENV GOPATH /go
30ENV PATH ${GOPATH}/bin:${GOROOT}/bin:${PATH}
31ENV GO_VERSION REPLACE_ME_GO_VERSION
32ENV GO_DOWNLOAD_URL https://storage.googleapis.com/golang
33RUN rm -rf ${GOROOT} \
34  && curl -s ${GO_DOWNLOAD_URL}/go${GO_VERSION}.linux-amd64.tar.gz | tar -v -C /usr/local/ -xz \
35  && mkdir -p ${GOPATH}/src ${GOPATH}/bin \
36  && go version \
37  && go get -v -u github.com/mattn/goreman
38