forked from openwallet-foundation-labs/credhub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mirko Mollik <[email protected]>
- Loading branch information
Mirko Mollik
committed
May 8, 2024
1 parent
c11b0d3
commit a07bda2
Showing
44 changed files
with
584 additions
and
115 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 @@ | ||
node_modules/ |
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,4 @@ | ||
FROM docker.io/nginx:stable-alpine | ||
COPY dist/apps/holder-app/* /usr/share/nginx/html/ | ||
EXPOSE 80 | ||
CMD ["nginx", "-g", "daemon off;"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Install dependencies only when needed | ||
FROM docker.io/node:lts-alpine as deps | ||
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. | ||
RUN apk add --no-cache libc6-compat | ||
WORKDIR /usr/src/app | ||
COPY dist/apps/holder-backend/package*.json ./ | ||
COPY dist/apps/holder-backend/pnpm-lock.yaml ./ | ||
RUN npm install -g [email protected] | ||
RUN pnpm install --prod | ||
|
||
# Production image, copy all the files and run nest | ||
FROM docker.io/node:lts-alpine as runner | ||
RUN apk add --no-cache dumb-init | ||
ENV NODE_ENV production | ||
ENV PORT 3000 | ||
WORKDIR /usr/src/app | ||
COPY --from=deps /usr/src/app/node_modules ./node_modules | ||
COPY --from=deps /usr/src/app/package.json ./package.json | ||
COPY dist/apps/holder-backend . | ||
RUN chown -R node:node . | ||
USER node | ||
EXPOSE 3000 | ||
CMD ["dumb-init", "node", "main.js"] |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Install dependencies only when needed | ||
FROM docker.io/node:lts-alpine as deps | ||
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. | ||
RUN apk add --no-cache libc6-compat | ||
WORKDIR /usr/src/app | ||
COPY dist/apps/holder-backend/package*.json ./ | ||
COPY dist/apps/holder-backend/pnpm-lock.yaml ./ | ||
RUN npm install -g [email protected] | ||
RUN pnpm install --prod | ||
|
||
# Production image, copy all the files and run nest | ||
FROM docker.io/node:lts-alpine as runner | ||
RUN apk add --no-cache dumb-init | ||
ENV NODE_ENV production | ||
ENV PORT 3000 | ||
WORKDIR /usr/src/app | ||
COPY --from=deps /usr/src/app/node_modules ./node_modules | ||
COPY --from=deps /usr/src/app/package.json ./package.json | ||
COPY dist/apps/holder-backend . | ||
RUN chown -R node:node . | ||
USER node | ||
EXPOSE 3000 | ||
CMD ["dumb-init", "node", "main.js"] |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM docker.io/nginx:stable-alpine | ||
COPY dist/apps/issuer-frontend/* /usr/share/nginx/html/ | ||
EXPOSE 80 | ||
CMD ["nginx", "-g", "daemon off;"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,5 @@ KEYCLOAK_REALM=wallet | |
KEYCLOAK_CLIENT_ID=issuer | ||
|
||
CREDENTIALS_FOLDER=config/verifier | ||
|
||
KM_FOLDER=tmp/verifier/ |
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,23 @@ | ||
# Install dependencies only when needed | ||
FROM docker.io/node:lts-alpine as deps | ||
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. | ||
RUN apk add --no-cache libc6-compat | ||
WORKDIR /usr/src/app | ||
COPY dist/apps/holder-backend/package*.json ./ | ||
COPY dist/apps/holder-backend/pnpm-lock.yaml ./ | ||
RUN npm install -g [email protected] | ||
RUN pnpm install --prod | ||
|
||
# Production image, copy all the files and run nest | ||
FROM docker.io/node:lts-alpine as runner | ||
RUN apk add --no-cache dumb-init | ||
ENV NODE_ENV production | ||
ENV PORT 3000 | ||
WORKDIR /usr/src/app | ||
COPY --from=deps /usr/src/app/node_modules ./node_modules | ||
COPY --from=deps /usr/src/app/package.json ./package.json | ||
COPY dist/apps/holder-backend . | ||
RUN chown -R node:node . | ||
USER node | ||
EXPOSE 3000 | ||
CMD ["dumb-init", "node", "main.js"] |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.