Commit 9cdcae36 authored by Andrei Mihu's avatar Andrei Mihu
Browse files

Update docker build files to Go 1.12.7 on Alpine 3.10.

parent e2b38a40
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr
- Filtering by group state in user groups listing operations.

### Changed
- Use Go 1.12.7 on Alpine 3.10 as base Docker container image and native builds.
- Update devconsole lodash (4.17.13) and lodash.template (4.5.0) dependencies.
- Errors from runtime before hooks no longer close the session.
- Switch prometheus metrics to use labels instead of a prefix.
+2 −2
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@
# docker build "$PWD" --build-arg commit="$(git rev-parse --short HEAD)" --build-arg version=v2.1.1 -t heroiclabs/nakama:2.1.1
# docker build "$PWD" --build-arg commit="$(git rev-parse --short HEAD)" --build-arg version="v2.1.1-$(git rev-parse --short HEAD)" -t heroiclabs/nakama-prerelease:"2.1.1-$(git rev-parse --short HEAD)"

FROM golang:1.12.6-alpine3.9 as builder
FROM golang:1.12.7-alpine3.10 as builder

ARG commit
ARG version
@@ -32,7 +32,7 @@ WORKDIR /go/src/github.com/heroiclabs/nakama
RUN git checkout --quiet "$commit" && \
    go build -o /go/build/nakama -gcflags "-trimpath $PWD" -asmflags "-trimpath $PWD" -ldflags "-s -w -X main.version=$version -X main.commitID=$commit"

FROM alpine:3.9
FROM alpine:3.10

MAINTAINER Heroic Labs <support@heroiclabs.com>

+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@
# docker build "$PWD" --file ./Dockerfile.pluginbuilder --build-arg commit="$(git rev-parse --short HEAD)" --build-arg version=v2.1.1 -t heroiclabs/nakama-pluginbuilder:2.1.1
# docker build "$PWD" --file ./Dockerfile.pluginbuilder --build-arg commit="$(git rev-parse --short HEAD)" --build-arg version="v2.1.1-$(git rev-parse --short HEAD)" -t heroiclabs/nakama-prerelease:"2.1.1-$(git rev-parse --short HEAD)"

FROM golang:1.12.6-alpine3.9 as builder
FROM golang:1.12.7-alpine3.10 as builder

MAINTAINER Heroic Labs <support@heroiclabs.com>