-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile
41 lines (21 loc) · 862 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM node:16-alpine AS build
WORKDIR /build
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM alpine AS theme
WORKDIR /opt/keycloak/themes/europeana
COPY --from=build /build/theme ./
FROM quay.io/keycloak/keycloak:23.0.7 AS keycloak
WORKDIR /opt/keycloak
COPY --from=theme /opt/keycloak/themes/europeana ./themes/europeana
COPY ./keycloak/keycloak.conf ./conf/
RUN /opt/keycloak/bin/kc.sh build --http-relative-path=/auth
FROM quay.io/keycloak/keycloak:23.0.7
WORKDIR /opt/keycloak
COPY --from=keycloak /opt/keycloak ./
COPY ./keycloak/europeana-realm.json ./data/import/
HEALTHCHECK --start-period=5s --interval=5s --timeout=2s \
CMD curl -fs http://localhost:8080/auth/realms/europeana/account/ || exit 1
CMD ["start", "--optimized", "--import-realm", "--spi-login-protocol-openid-connect-legacy-logout-redirect-uri=true"]