-
-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (14 loc) · 762 Bytes
/
Dockerfile
File metadata and controls
23 lines (14 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM eclipse-temurin:25 AS build
RUN apt-get update && \
apt-get install -y --no-install-recommends curl unzip && \
rm -rf /var/lib/apt/lists/*
RUN mkdir /tmp/build
WORKDIR /tmp/build
COPY . /tmp/build
RUN ./mvnw clean install -Padoptium
FROM eclipse-temurin:25
RUN mkdir -p /deployments
COPY --from=build /tmp/build/adoptium-frontend-parent/adoptium-api-v3-frontend/target/quarkus-app/ /deployments/app/
COPY --from=build /tmp/build/adoptium-updater-parent/adoptium-api-v3-updater/target/adoptium-api-v3-updater-*-jar-with-dependencies.jar /deployments/adoptium-api-v3-updater-runner.jar
RUN mv /deployments/app/quarkus-run.jar /deployments/app/adoptium-api-v3-frontend.jar
CMD ["java", "-jar", "/deployments/app/adoptium-api-v3-frontend.jar"]