Skip to content

Commit bae6498

Browse files
committed
refactor: updated the docker file for oid4vc-issuance
Signed-off-by: Tipu_Singh <[email protected]>
1 parent 6ab319f commit bae6498

File tree

3 files changed

+32
-14
lines changed

3 files changed

+32
-14
lines changed

Dockerfiles/Dockerfile.oid4vc-issuance

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ WORKDIR /app
88

99
# Copy package.json and package-lock.json
1010
COPY package.json ./
11+
COPY pnpm-workspace.yaml ./
1112
#COPY package-lock.json ./
1213

1314
ENV PUPPETEER_SKIP_DOWNLOAD=true
@@ -20,8 +21,9 @@ COPY . .
2021
# RUN cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate
2122
RUN cd libs/prisma-service && npx prisma generate
2223

23-
# Build the issuance service
24-
RUN pnpm run build issuance
24+
# Build the oid4vc-issuance service
25+
RUN npm run build oid4vc-issuance
26+
2527

2628
# Stage 2: Create the final image
2729
FROM node:18-alpine
@@ -38,8 +40,6 @@ COPY --from=build /app/dist/apps/oid4vc-issuance/ ./dist/apps/oid4vc-issuance/
3840
COPY --from=build /app/libs/ ./libs/
3941
#COPY --from=build /app/package.json ./
4042
COPY --from=build /app/node_modules ./node_modules
41-
# COPY --from=build /app/uploadedFiles ./uploadedFiles
42-
4343

4444
# Set the command to run the microservice
45-
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/oid4vc-issuance/main.js"]
45+
CMD ["sh", "-c", "cd libs/prisma-service && npx prisma migrate deploy && npx prisma generate && cd ../.. && node dist/apps/oid4vc-issuance/main.js"]

apps/api-gateway/src/oid4vc-issuance/oid4vc-issuance.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ import {
5656
@Controller()
5757
@UseFilters(CustomExceptionFilter)
5858
@ApiTags('OID4VC')
59-
@ApiUnauthorizedResponse({ status: HttpStatus.UNAUTHORIZED, description: 'Unauthorized', type: UnauthorizedErrorDto })
60-
@ApiForbiddenResponse({ status: HttpStatus.FORBIDDEN, description: 'Forbidden', type: ForbiddenErrorDto })
59+
@ApiUnauthorizedResponse({ description: 'Unauthorized', type: UnauthorizedErrorDto })
60+
@ApiForbiddenResponse({ description: 'Forbidden', type: ForbiddenErrorDto })
6161
export class Oid4vcIssuanceController {
6262
constructor(private readonly oid4vcIssuanceService: Oid4vcIssuanceService) {}
6363
/**

pnpm-lock.yaml

Lines changed: 25 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)