Skip to content

Commit

Permalink
use image args for FROM, use golang-builder
Browse files Browse the repository at this point in the history
concourse/concourse#6425

Signed-off-by: Alex Suraci <[email protected]>
  • Loading branch information
vito committed Jan 14, 2021
1 parent 240ecd9 commit 41b4d99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions dockerfiles/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ARG base_image=alpine:edge
ARG base_image=alpine:latest
ARG builder_image=concourse/golang-builder

FROM golang:1 as builder
FROM ${builder_image} as builder
COPY . /src
WORKDIR /src
ENV CGO_ENABLED 0
Expand Down
5 changes: 3 additions & 2 deletions dockerfiles/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ARG base_image=ubuntu:bionic
ARG base_image
ARG builder_image=concourse/golang-builder

FROM concourse/golang-builder as builder
FROM ${builder_image} as builder
COPY . /src
WORKDIR /src
ENV CGO_ENABLED 0
Expand Down

0 comments on commit 41b4d99

Please sign in to comment.