Skip to content

Commit

Permalink
simplify COPY layers
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Jan 15, 2024
1 parent 7f65e71 commit 3723f31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ RUN dnf install -y go git make gettext \
&& popd

FROM registry.access.redhat.com/ubi8/ubi-micro:${runner_version}
COPY --from=builder /usr/bin/envsubst /usr/bin/
COPY --from=builder /root/go/bin/weed /usr/bin/weed
COPY --from=builder /root/seaweedfs/docker/entrypoint.sh /usr/local
COPY ./cryostat-entrypoint.bash /usr/local/
COPY --from=builder /usr/bin/envsubst /root/go/bin/weed /root/seaweedfs/docker/entrypoint.sh /usr/bin/
COPY ./cryostat-entrypoint.bash /usr/bin/
COPY seaweed_conf.template.json /etc/seaweed_conf.template.json
ENTRYPOINT ["/usr/local/cryostat-entrypoint.bash"]
ENTRYPOINT ["/usr/bin/cryostat-entrypoint.bash"]
2 changes: 1 addition & 1 deletion cryostat-entrypoint.bash
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set -xe
cfg="$(mktemp)"
envsubst '$CRYOSTAT_ACCESS_KEY $CRYOSTAT_SECRET_KEY' < /etc/seaweed_conf.template.json > "${cfg}"

exec /usr/local/entrypoint.sh \
exec /usr/bin/entrypoint.sh \
server -dir="${DATA_DIR:-/data}" \
-s3 -s3.config="${cfg}" \
"$@"

0 comments on commit 3723f31

Please sign in to comment.