forked from hazelcast/hazelcast
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.pasturestack
More file actions
30 lines (23 loc) · 1.29 KB
/
Copy pathDockerfile.pasturestack
File metadata and controls
30 lines (23 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# syntax=docker/dockerfile:1.7
ARG VCS_REF
FROM eclipse-temurin:25.0.4_7-jdk-noble@sha256:534968c051301957beae735e7ba1db54d99ddecf08746d3b9d4f318cc132dbc3 AS build
ARG VCS_REF
ENV MAVEN_OPTS="-Xms256m -Xmx1200m -XX:+UseSerialGC"
ENV PASTURESTACK_VCS_REF="$VCS_REF"
RUN apt-get update \
&& apt-get install --yes --no-install-recommends unzip=6.0-28ubuntu4.1 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /src
COPY . .
RUN --mount=type=cache,target=/root/.m2 scripts/pasturestack-build-runtime
FROM scratch
ARG VCS_REF
LABEL org.opencontainers.image.title="PastureStack Distributed Cache Runtime" \
org.opencontainers.image.description="PastureStack artifact 5.7.4 with Hazelcast cluster runtime 5.7.3 and reviewed security updates" \
org.opencontainers.image.source="https://github.com/PastureStack/distributed-cache-runtime" \
org.opencontainers.image.revision="$VCS_REF" \
org.opencontainers.image.licenses="Apache-2.0 OR LicenseRef-Hazelcast-Community" \
org.opencontainers.image.vendor="PastureStack"
COPY --from=build /src/dist/hazelcast-5.7.4.jar /opt/pasturestack/vendor/hazelcast-5.7.4.jar
COPY --from=build /src/dist/hazelcast-5.7.4.jar.sha256 /opt/pasturestack/vendor/hazelcast-5.7.4.jar.sha256
COPY LICENSE NOTICE ORIGIN.md SECURITY-MAINTENANCE.md /opt/pasturestack/licenses/