Skip to content

Commit

Permalink
Fix base image pinning from Concourse resources
Browse files Browse the repository at this point in the history
Properly using build args as advised in the docs.
  • Loading branch information
bgandon committed May 10, 2024
1 parent b9795cf commit bb3c3c5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
FROM golang AS builder
ARG golang
ARG alpine

FROM ${golang} AS builder
ADD . /go/src/github.com/telia-oss/github-pr-resource
WORKDIR /go/src/github.com/telia-oss/github-pr-resource
RUN curl -sL https://taskfile.dev/install.sh | sh /dev/stdin v3.33.1
RUN ./bin/task build

FROM alpine AS resource
FROM ${alpine} AS resource
COPY --from=builder /go/src/github.com/telia-oss/github-pr-resource/build /opt/resource
RUN apk add --update --no-cache \
git \
Expand Down

0 comments on commit bb3c3c5

Please sign in to comment.