-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
27 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
**/*.db | ||
**/.env | ||
**/.git* | ||
**/.waypoint | ||
**/build | ||
node_modules | ||
dist_keycloak | ||
dist | ||
Dockerfile | ||
README.md | ||
.dockerignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
FROM node:22-alpine AS build | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y maven | ||
RUN apk update && apk add maven | ||
|
||
WORKDIR /srv | ||
ADD package.json . | ||
ADD yarn.lock . | ||
WORKDIR /themes | ||
|
||
RUN corepack enable | ||
|
||
# Copy dependency files first | ||
COPY package.json yarn.lock .yarnrc.yml ./ | ||
|
||
COPY . . | ||
|
||
RUN yarn install | ||
|
||
RUN yarn | ||
ADD . . | ||
RUN yarn build-keycloak-theme | ||
|
||
FROM node:22-alpine | ||
COPY --from=build /srv/dist_keycloak/ /srv/ | ||
|
||
COPY --from=build /themes/dist_keycloak/ /themes/ | ||
|
||
CMD ["sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters