Files
Bradley Bown bca27b112f Use multi-stage builds to unzip and copy jars (#118)
* Use multi-stage builds to unzip and copy jars

* Change base docker iamge

* Fix mkdir command

* Revert mkdir concat

* Remove apt-get calls

* Revert local COPY change

* Use apk to install packages

* Revert to debian based image

* Fix copy location

* Merge mkdir commands

* Amended directories

* Remove libs based on platform

* Use uname -m to get current architecture

* Switch if statement to case statement to uname call

* Fix zip copy

* Add WORKDIR to improve readability, move removal of darwin dir out of case switches

* feat: change builder image to a more secure one

* feat: change builder and final image to eclipse-temurin 21-alpine

* feat: removed unnecessary slash

* feat: update dockerfile to avoid hardcoded version for jar files

* feat: allow more flexible name matching for jar files

* feat: use installDist in GHA job to avoid unzip

* feat: use installDist in GHA job to avoid unzip in transaction-exclusion-api

* feat: update manual image build for coordinator and tx-exclusion-api

* feat: revert setting ssl and gssEncMode in tx-exclusion-api integration test

---------

Co-authored-by: jonesho <jones.ho@consensys.net>
Co-authored-by: jonesho <81145364+jonesho@users.noreply.github.com>
2024-12-03 02:43:24 +08:00

21 lines
680 B
Docker

FROM eclipse-temurin:21-jre-alpine
WORKDIR /opt/consensys/linea/transaction-exclusion-api/
RUN mkdir -p logs
COPY --from=libs ./** libs/
# Build-time metadata as defined at http://label-schema.org
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="transaction-exclusion-api" \
org.label-schema.description="Linea Transaction Exclusion API" \
org.label-schema.url="https://consensys.io/" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/ConsenSys/linea-monorepo" \
org.label-schema.vendor="ConsenSys" \
org.label-schema.version=$VERSION \
org.label-schema.schema-version="1.0"