diff options
author | Valery Piashchynski <[email protected]> | 2020-12-26 01:09:47 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-26 01:09:47 +0300 |
commit | 6cbc67e9bfce7fcb5da2f402adeb9e83cab8f717 (patch) | |
tree | 206600bb04ce27979ac19c0a228259a17a9cd423 | |
parent | c275707eccf06786c1a092c486fecbe0519d67ac (diff) |
Update Dockerfile for the RR2
-rw-r--r-- | Dockerfile | 4 | ||||
-rw-r--r-- | cmd/main.go | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ # Image page: <https://hub.docker.com/_/golang> -FROM golang:1.15.5 as builder +FROM golang:1.15.6 as builder # app version and build date must be passed during image building (version without any prefix). # e.g.: `docker build --build-arg "APP_VERSION=1.2.3" --build-arg "BUILD_TIME=$(date +%FT%T%z)" .` @@ -26,7 +26,7 @@ RUN set -x \ COPY . . # compile binary file -RUN CGO_ENABLED=0 go build -trimpath -ldflags "$LDFLAGS" -o ./rr ./cmd/rr/main.go +RUN CGO_ENABLED=0 go build -trimpath -ldflags "$LDFLAGS" -o ./rr ./cmd/main.go # Image page: <https://hub.docker.com/_/alpine> FROM alpine:3.12 diff --git a/cmd/main.go b/cmd/main.go index 36638836..a18d2c0d 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -19,10 +19,10 @@ import ( var ( // Version - defines build version. - Version = "local" + Version string = "local" //nolint:deadcode // BuildTime - defined build time. - BuildTime = "development" + BuildTime string = "development" //nolint:deadcode ) func main() { |