Skip to content

Commit

Permalink
fix: fix dockerfile node version
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghadi8 committed Oct 30, 2024
1 parent cda81a9 commit c258233
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/vc-api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ RUN apk add --no-cache --virtual .build-deps python3 make g++ && \

# Stage 2: Build the application
# Note: Assuming main.js doesn't require a build process. If it does, you would need to copy source files and build here.
FROM node:lts-alpine as build
FROM node:18.18.0-alpine as build
WORKDIR /usr/src/app
COPY --from=deps /usr/src/app/node_modules ./node_modules
COPY dist/apps/vc-api/ ./

# Stage 3: Production image, copy all the files and run the app
FROM node:lts-alpine as runner
FROM node:18.18.0-alpine as runner
RUN apk add --no-cache dumb-init && \
addgroup -S appgroup && adduser -S appuser -G appgroup
ENV NODE_ENV production
Expand Down

0 comments on commit c258233

Please sign in to comment.