forked from Alvearie/keycloak-extensions-for-fhir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (19 loc) · 910 Bytes
/
Dockerfile
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
# ----------------------------------------------------------------------------
# (C) Copyright IBM Corp. 2021
#
# SPDX-License-Identifier: Apache-2.0
# ----------------------------------------------------------------------------
# Build stage
FROM maven:3-jdk-11-slim AS build
COPY pom.xml ./
COPY keycloak-config ./keycloak-config
COPY jboss-fhir-provider ./jboss-fhir-provider
COPY keycloak-extensions ./keycloak-extensions
RUN mvn -B clean package -DskipTests
# Package stage
FROM quay.io/keycloak/keycloak:18.0.0-legacy
# This can be overridden, but without this I've found the db vendor-detection in Keycloak to be brittle
ENV DB_VENDOR=H2
COPY --from=build keycloak-extensions/target/keycloak-extensions-*.jar /opt/jboss/keycloak/standalone/deployments/
COPY --from=build jboss-fhir-provider/target/jboss-modules/ /opt/jboss/keycloak/modules/system/layers/base/
RUN rm -rf /opt/jboss/keycloak/docs