File: Dockerfile.heading-arg

package info (click to toggle)
golang-github-openshift-imagebuilder 1.2.19%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,740 kB
  • sloc: makefile: 18; sh: 3; ansic: 1
file content (18 lines) | stat: -rw-r--r-- 366 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
ARG GO_VERSION=1.24
ARG GO_IMAGE=mirror.gcr.io/golang
FROM $GO_IMAGE:$GO_VERSION as builder
ARG FOO
WORKDIR /tmp
COPY . .
RUN echo foo > /tmp/bar

FROM mirror.gcr.io/busybox:latest AS modifier
WORKDIR /tmp
COPY --from=builder /tmp/bar /tmp/bar
RUN echo foo2 >> /tmp/bar

FROM $GO_IMAGE:$GO_VERSION
WORKDIR /
COPY --from=modifier /tmp/bar /bin/baz

RUN echo /bin/baz