Dockerfile 928 B

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