docker: Accept Go version as --build-arg

This commit is contained in:
Jakob Borg committed 2020-05-04 12:45:36 +02:00
1 parent 914eb77ca4
commit 92905d30e8
4 files changed
+8 -4

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
FROM golang:1.13 AS builder
ARG GOVERSION=latest
FROM golang:$GOVERSION AS builder
WORKDIR /src
COPY . .
+2 -1
View File
@@ -1,4 +1,5 @@
FROM golang:1.13
ARG GOVERSION=latest
FROM golang:$GOVERSION
# FPM to build Debian packages
RUN apt-get update && apt-get install -y --no-install-recommends \
+2 -1
View File
@@ -1,4 +1,5 @@
FROM golang:1.13 AS builder
ARG GOVERSION=latest
FROM golang:$GOVERSION AS builder
WORKDIR /src
COPY . .
+2 -1
View File
@@ -1,4 +1,5 @@
FROM golang:1.13 AS builder
ARG GOVERSION=latest
FROM golang:$GOVERSION AS builder
WORKDIR /src
COPY . .