Skip to content

Commit

Permalink
docker update
Browse files Browse the repository at this point in the history
  • Loading branch information
kalidiagne committed Oct 30, 2024
1 parent f1340ed commit 1f4a660
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@ FROM node:18-alpine3.18 as builder
RUN apk add --no-cache git curl

WORKDIR /builder

COPY package.json yarn.lock ./
RUN npm i -g yarn && yarn install

COPY . .
RUN npm i -g yarn
RUN yarn install
RUN yarn build



# Create image by copying build artifacts
FROM node:18-alpine3.18 as runner
RUN npm i -g yarn
RUN rm -rf /usr/local/bin/yarn && npm i -g yarn --force

USER node
ARG PORT=3000
Expand Down

0 comments on commit 1f4a660

Please sign in to comment.