forked from docker-library/official-images
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
30 lines (26 loc) · 928 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# FYI, this base image is built via ".github/workflows/.bashbrew/action.yml" (from https://github.com/docker-library/bashbrew/tree/master/Dockerfile)
FROM oisupport/bashbrew:base
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
# wget for downloading files (especially in tests, which run in this environment)
ca-certificates \
wget \
# git for cloning source code
git \
# gawk for diff-pr.sh
gawk \
# tar -tf in diff-pr.sh
bzip2 \
# jq for diff-pr.sh
jq \
; \
rm -rf /var/lib/apt/lists/*
ENV DIR /usr/src/official-images
ENV BASHBREW_LIBRARY $DIR/library
# crane for diff-pr.sh
# https://gcr.io/go-containerregistry/crane:latest
# https://explore.ggcr.dev/?image=gcr.io/go-containerregistry/crane:latest
COPY --from=gcr.io/go-containerregistry/crane@sha256:d0e5cc313e7388a573bb4cfb980a935bb740c5787df7d90f7066b8e8146455ed /ko-app/crane /usr/local/bin/
WORKDIR $DIR
COPY . $DIR