Skip to content

Commit

Permalink
Set args properely
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 committed Aug 24, 2024
1 parent e3bc062 commit 00509c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ARG KEYCLOAK_VERSION=25.0.4
FROM node:20 as keycloakify_jar_builder
RUN apt-get update && \
apt-get install -y openjdk-17-jdk && \
Expand All @@ -8,13 +9,11 @@ RUN pnpm install
COPY ./keycloakify-starter/ /opt/app/
RUN pnpm run build

ARG KEYCLOAK_VERSION=25.0.4
FROM quay.io/keycloak/keycloak:${KEYCLOAK_VERSION} as builder
WORKDIR /opt/keycloak
COPY --from=keycloakify_jar_builder /opt/app/dist_keycloak/keycloak-theme-for-kc-22-and-above.jar /opt/keycloak/providers/
RUN /opt/keycloak/bin/kc.sh build

ARG KEYCLOAK_VERSION=25.0.4
FROM quay.io/keycloak/keycloak:${KEYCLOAK_VERSION}
COPY --from=builder /opt/keycloak/ /opt/keycloak/

Expand Down

0 comments on commit 00509c4

Please sign in to comment.