Skip to content

Commit

Permalink
Merge pull request #5 from concourse/image-args
Browse files Browse the repository at this point in the history
use image args for FROM, use golang-builder
  • Loading branch information
vito authored Jan 14, 2021
2 parents 240ecd9 + 41b4d99 commit daa16d1
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 daa16d1

Please sign in to comment.