Skip to content

Commit 594dc44

Browse files
committed
update dockerfile to latest format
1 parent 54d5da0 commit 594dc44

1 file changed

Lines changed: 11 additions & 19 deletions

File tree

  • container/dockerfiles/bosh-io-release-resource
Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,28 @@
11
ARG 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
64
RUN 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+
1411
ADD 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
1712
RUN chmod +x /opt/resource/*
1813
ADD . /resource
1914
WORKDIR /resource
20-
RUN gem install bundler -v 2.1.4
15+
RUN gem install bundler -v 2.6
2116
RUN bundle install --local && bundle exec rspec
2217

2318
FROM ${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

3325
ADD assets/ /opt/resource/
3426
RUN chmod +x /opt/resource/*
3527

36-
FROM resource
28+
FROM resource

0 commit comments

Comments
 (0)