Skip to content

Commit

Permalink
Fix Docker setup files
Browse files Browse the repository at this point in the history
Update readme.md
  • Loading branch information
peterMuriuki committed Dec 4, 2024
1 parent b0452c4 commit f4dcd8d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 9 deletions.
11 changes: 11 additions & 0 deletions .dockerignore
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
21 changes: 13 additions & 8 deletions Dockerfile
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"]
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Opensrp Keycloak Theme

The vanilla (manually edited ftl files) themes can be found in the branch [vanilla-themes]()

This repository contains a custom Keycloak theme built using [Keycloakify](https://github.com/keycloakify/keycloakify) and the [Keycloakify starter repository](https://github.com/keycloakify/keycloakify-starter-webpack). The theme is designed for use with Keycloak and provides custom styling and layouts for the following authentications pages:
- Login

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
- "--http-relative-path /auth"
- "--spi-theme-static-max-age=-1 --spi-theme-cache-themes=false --spi-theme-cache-templates=false"
volumes:
- ./keycloak-theme.jar:/opt/keycloak/providers/keycloak-theme.jar
- ./dist_keycloak/keycloak-theme-for-kc-22-and-above.jar:/opt/keycloak/providers/keycloak-theme.jar
ports:
- "8080:8080"
- "8443:8443"
Expand Down

0 comments on commit f4dcd8d

Please sign in to comment.