docker: Bump to golang 1.8

This commit is contained in:
Guillaume Herail
2017-11-16 17:34:36 +01:00
parent a5247d6e69
commit cbc3a691b9
2 changed files with 7 additions and 4 deletions

View File

@@ -1,10 +1,10 @@
FROM golang:1.6.2 FROM golang:1.8
MAINTAINER Michał Czeraszkiewicz <contact@czerasz.com> MAINTAINER Michał Czeraszkiewicz <contact@czerasz.com>
# Set the reset cache variable # Set the reset cache variable
# Read more here: http://czerasz.com/2014/11/13/docker-tip-and-tricks/#use-refreshedat-variable-for-better-cache-control # Read more here: http://czerasz.com/2014/11/13/docker-tip-and-tricks/#use-refreshedat-variable-for-better-cache-control
ENV REFRESHED_AT 2016-05-10 ENV REFRESHED_AT 2017-11-16
# Update the package list to be able to use required packages # Update the package list to be able to use required packages
RUN apt-get update RUN apt-get update

View File

@@ -1,10 +1,10 @@
FROM golang:1.6.2 FROM golang:1.8
MAINTAINER Michał Czeraszkiewicz <contact@czerasz.com> MAINTAINER Michał Czeraszkiewicz <contact@czerasz.com>
# Set the reset cache variable # Set the reset cache variable
# Read more here: http://czerasz.com/2014/11/13/docker-tip-and-tricks/#use-refreshedat-variable-for-better-cache-control # Read more here: http://czerasz.com/2014/11/13/docker-tip-and-tricks/#use-refreshedat-variable-for-better-cache-control
ENV REFRESHED_AT 2016-05-14 ENV REFRESHED_AT 2017-11-16
RUN apt-get update RUN apt-get update
@@ -27,5 +27,8 @@ WORKDIR /home/$USER_NAME/mgmt
# Install dependencies # Install dependencies
RUN make deps RUN make deps
# Chown $GOPATH
RUN chown -R ${USER_ID}:${GROUP_ID} /go
# Change user # Change user
USER ${USER_NAME} USER ${USER_NAME}