File: Dockerfile

package info (click to toggle)
golang-github-containers-buildah 1.39.3%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,724 kB
  • sloc: sh: 2,398; makefile: 236; perl: 187; asm: 16; awk: 12; ansic: 1
file content (23 lines) | stat: -rw-r--r-- 662 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
ARG ALPINE

FROM mirror.gcr.io/busybox
RUN echo TARGETPLATFORM=$TARGETPLATFORM | tee 0.txt
ARG TARGETPLATFORM
RUN echo TARGETPLATFORM=$TARGETPLATFORM | tee -a 0.txt
RUN touch -d @0 0.txt

FROM ${SECONDBASE:-mirror.gcr.io/busybox}
COPY --from=0 /*.txt /
COPY --chown=${OWNERID:-1}:${OWNERID:-1} ${SOURCE:-other}file.txt /1a.txt
ARG OWNERID=1
ARG SOURCE=
COPY --chown=${OWNERID:-1}:${OWNERID:-1} ${SOURCE:-other}file.txt /1b.txt

FROM ${ALPINE:-mirror.gcr.io/busybox}
ARG SECONDBASE=localhost/no-such-image
COPY --from=1 /*.txt /
RUN cp -p /etc/nsswitch.conf /2.txt

FROM ${BUSYBOX:-mirror.gcr.io/alpine}
COPY --from=2 /*.txt /
RUN cp -p /etc/nsswitch.conf /3.txt