Skip to content

Commit ef98326

Browse files
Merge pull request #22 from SafetyCulture/go113
Update to latest Go image 1.13.1 and use Go Modules
2 parents 508f35c + e04e10c commit ef98326

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG BASE=1.9.3-alpine3.7
1+
ARG BASE=1.13.1-alpine3.10
22
FROM golang:${BASE} as build
33

44
WORKDIR /usr/src/app
@@ -8,12 +8,10 @@ RUN apk add --no-cache jq
88
RUN export go_version=$(go version | cut -d ' ' -f 3) && \
99
cat engine.json.template | jq '.version = .version + "/" + env.go_version' > ./engine.json
1010

11-
COPY codeclimate-govet.go ./
11+
COPY codeclimate-govet.go go.mod go.sum ./
1212
RUN apk add --no-cache git
13-
RUN go get -t -d -v ./...
1413
RUN go build -o codeclimate-govet .
1514

16-
1715
FROM golang:${BASE}
1816

1917
LABEL maintainer="Code Climate <hello@codeclimate.com>"

go.mod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module github.com/codeclimate-community/codeclimate-govet
2+
3+
go 1.13
4+
5+
require github.com/codeclimate/cc-engine-go v0.0.0-20160217183426-55f9c825e2a9

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github.com/codeclimate/cc-engine-go v0.0.0-20160217183426-55f9c825e2a9 h1:Wk8UDfEjmZtZI8guLovZZ1QXkbGIPWy2cpeYS2JgKPg=
2+
github.com/codeclimate/cc-engine-go v0.0.0-20160217183426-55f9c825e2a9/go.mod h1:A0vs4JxevyA0WJrMjU/5sedZBlICgsdPloAKENM2JmU=

0 commit comments

Comments
 (0)