11ARG base_image
2- ARG builder_image=paketobuildpacks/build-jammy-base
32
4- FROM ${builder_image} AS tests
5- USER root
3+ FROM ${base_image} AS tests
64RUN apt update && apt upgrade -y -o Dpkg::Options::="--force-confdef"
7- RUN apt update && apt install -y --no-install-recommends \
8- wget \
5+ RUN DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends \
96 curl \
107 ca-certificates \
118 jq \
12- ruby-full \
13- && rm -rf /var/lib/apt/lists/*
9+ ruby
10+
1411ADD assets/ /opt/resource/
15- RUN wget "https://github.com/moparisthebest/static-curl/releases/download/v8.11.0/curl-amd64" -O /opt/resource/curl
16- RUN wget "https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-amd64" -O /opt/resource/jq
1712RUN chmod +x /opt/resource/*
1813ADD . /resource
1914WORKDIR /resource
20- RUN gem install bundler -v 2.1.4
15+ RUN gem install bundler -v 2.6
2116RUN bundle install --local && bundle exec rspec
2217
2318FROM ${base_image} AS resource
24- USER root
25-
26- COPY --from=busybox:uclibc /bin/mktemp /bin/
27- COPY --from=busybox:uclibc /bin/mkdir /bin/
28- COPY --from=busybox:uclibc /bin/sha256sum /bin/
29- COPY --from=busybox:uclibc /bin/sha1sum /bin/
30- COPY --from=tests /opt/resource/curl /bin/
31- COPY --from=tests /opt/resource/jq /bin/
19+ RUN apt update && apt upgrade -y -o Dpkg::Options::="--force-confdef"
20+ RUN DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends \
21+ ca-certificates \
22+ jq \
23+ curl
3224
3325ADD assets/ /opt/resource/
3426RUN chmod +x /opt/resource/*
3527
36- FROM resource
28+ FROM resource
0 commit comments