-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (14 loc) · 820 Bytes
/
Dockerfile
File metadata and controls
23 lines (14 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# This docker file builds unipipe-service-broker
# It is required to run this from the root of the repository as we need files from all over the repository
# In order to make builds faster (by reducing build context), you can use the selective docker ignore feature (details here https://stackoverflow.com/questions/40904409/how-to-specify-different-dockerignore-files-for-different-builds-in-the-same-pr)
# For this to work you will need the following
# - at least docker 19.03
# - docker buildkit enabled (export DOCKER_BUILDKIT=1)
FROM eclipse-temurin:17-jdk as builder
COPY ./ /build
WORKDIR /build
RUN ./gradlew :bootJar -x test
FROM eclipse-temurin:17-jre
COPY --from=builder /build/build/libs/unipipe-service-broker-1.0.0.jar /app/
WORKDIR /app
ENTRYPOINT [ "/app/unipipe-service-broker-1.0.0.jar" ]