Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tirr-c committed Mar 21, 2024
1 parent 64d86e0 commit c4eab75
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
FROM node:18-alpine as builder
FROM node:20-alpine AS base
ENV YARN_ENABLE_GLOBAL_CACHE=false

FROM base as builder
RUN apk add --no-cache python3 make gcc g++
WORKDIR /app

Expand All @@ -9,15 +12,15 @@ RUN yarn install --immutable
COPY . .
RUN yarn build

FROM node:18-alpine as deps
FROM base as deps
RUN apk add --no-cache python3 make gcc g++
WORKDIR /app

COPY package.json yarn.lock .yarnrc.yml ./
COPY .yarn ./.yarn
RUN yarn workspaces focus --production

FROM node:18-alpine as runner
FROM base as runner
RUN apk add --no-cache tini
WORKDIR /app

Expand Down

0 comments on commit c4eab75

Please sign in to comment.