mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-05 12:57:55 +00:00
docker: Accept Go version as --build-arg
This commit is contained in:
parent
914eb77ca4
commit
92905d30e8
@ -1,4 +1,5 @@
|
||||
FROM golang:1.13 AS builder
|
||||
ARG GOVERSION=latest
|
||||
FROM golang:$GOVERSION AS builder
|
||||
|
||||
WORKDIR /src
|
||||
COPY . .
|
||||
|
@ -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 \
|
||||
|
@ -1,4 +1,5 @@
|
||||
FROM golang:1.13 AS builder
|
||||
ARG GOVERSION=latest
|
||||
FROM golang:$GOVERSION AS builder
|
||||
|
||||
WORKDIR /src
|
||||
COPY . .
|
||||
|
@ -1,4 +1,5 @@
|
||||
FROM golang:1.13 AS builder
|
||||
ARG GOVERSION=latest
|
||||
FROM golang:$GOVERSION AS builder
|
||||
|
||||
WORKDIR /src
|
||||
COPY . .
|
||||
|
Loading…
Reference in New Issue
Block a user