Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
berviantoleo authored Nov 24, 2024
1 parent 9bc2715 commit 1bab339
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
FROM node:22 as build
FROM node:22-alpine as build
# Create app directory
WORKDIR /app
COPY package.json yarn.lock ./
RUN corepack enable && yarn install --immutable
COPY . .
RUN yarn build
RUN apk add --no-cache git && corepack enable && yarn install --immutable && yarn build

FROM node:22-alpine as runner
WORKDIR /app
Expand Down

0 comments on commit 1bab339

Please sign in to comment.