Skip to content

Commit

Permalink
Update golang version to 1.11 (prebid#942)
Browse files Browse the repository at this point in the history
* Update golang version to 1.11

* Remove leftover go version echo

* Remove HOME from GOPATH
  • Loading branch information
mansinahar authored and hhhjort committed Jun 19, 2019
1 parent b1829f0 commit 2396e7e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
FROM ubuntu:18.04 AS build
WORKDIR /go/src/github.com/prebid/prebid-server/
RUN apt-get update && \
apt-get -y upgrade && \
apt-get install -y git golang go-dep && \
apt-get install -y wget
RUN cd /tmp && \
wget https://dl.google.com/go/go1.11.11.linux-amd64.tar.gz && \
tar -xf go1.11.11.linux-amd64.tar.gz && \
mv go /usr/local
WORKDIR /go/src/github.com/prebid/prebid-server/
ENV GOROOT=/usr/local/go
ENV GOPATH=/go
ENV PATH=$GOPATH/bin:$GOROOT/bin:$PATH
RUN apt-get install -y git go-dep && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ENV GOPATH /go
ENV CGO_ENABLED 0
COPY ./ ./
RUN dep ensure && \
Expand Down

0 comments on commit 2396e7e

Please sign in to comment.