14 lines
384 B
Docker
14 lines
384 B
Docker
ARG ALPINE_VERSION=3.23.3
|
|
|
|
FROM alpine:${ALPINE_VERSION} AS builder
|
|
|
|
# update package registry, install bash and git
|
|
RUN apk update; apk add --no-cache bash; apk add --no-cache git; apk cache clean
|
|
|
|
# add separate step to avoid making layers
|
|
FROM alpine:${ALPINE_VERSION}
|
|
|
|
COPY --from=builder . .
|
|
|
|
# labels
|
|
LABEL org.opencontainers.image.source=https://git.dzuchun.ing/actions/alpine
|