Skip to content

Commit 405745a

Browse files
Add docker setup to build jar
1 parent ed7966b commit 405745a

File tree

4 files changed

+4426
-2041
lines changed

4 files changed

+4426
-2041
lines changed

.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
dist
3+
dist_keycloak
4+
# IMPORTANT: Make sure `.gitignore` is **not** listed
5+
# in your .dockerignore file

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM node:20-alpine AS build
2+
RUN apk update && \
3+
apk add --no-cache openjdk17 maven
4+
WORKDIR /app
5+
COPY . .
6+
RUN npm ci
7+
RUN npm run build-keycloak-theme
8+
9+
FROM scratch
10+
COPY --from=build /app/dist_keycloak/keycloak-theme-for-kc-all-other-versions.jar .

0 commit comments

Comments
 (0)