Skip to content

Commit

Permalink
Update Dockerfile to use slim version of Node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
n4ze3m committed Nov 18, 2023
1 parent a5c010b commit 15a3e59
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
@@ -1,4 +1,4 @@
FROM node:18 as server
FROM node:18-slim as server

WORKDIR /app

Expand All @@ -13,7 +13,7 @@ RUN yarn install --frozen-lockfile

RUN yarn build

FROM node:18 as build
FROM node:18-slim as build
WORKDIR /app

RUN apt update
Expand All @@ -24,7 +24,7 @@ RUN pnpm install

RUN pnpm build

FROM node:18
FROM node:18-slim
WORKDIR /app

RUN yarn config set registry https://registry.npmjs.org/
Expand Down

0 comments on commit 15a3e59

Please sign in to comment.