Skip to content

Commit

Permalink
reduce the number of layers
Browse files Browse the repository at this point in the history
Signed-off-by: Aditya Saini <adityasaini10012001@outlook.com>
  • Loading branch information
SainiAditya1 committed Nov 19, 2023
1 parent c90bdaf commit b7df39d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ ENV PATH="$PNPM_HOME:$PATH"
WORKDIR /app
COPY . .

RUN corepack enable
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install
RUN NODE_OPTIONS=--max_old_space_size=4096 pnpm run build
RUN corepack enable \
&& --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install \
&& NODE_OPTIONS=--max_old_space_size=4096 pnpm run build

# Node alpine image to serve the generated static files
FROM node:20-alpine AS serve
Expand Down

0 comments on commit b7df39d

Please sign in to comment.