22 lines
391 B
Docker
22 lines
391 B
Docker
|
from aburgess/node:22-npm as deps
|
||
|
|
||
|
workdir /app
|
||
|
add package.json pnpm-lock.yaml ./
|
||
|
run pnpm install --prod
|
||
|
|
||
|
from deps as builder
|
||
|
|
||
|
run pnpm install
|
||
|
add . .
|
||
|
run nrr build
|
||
|
|
||
|
from aburgess/node:22
|
||
|
|
||
|
workdir /app
|
||
|
run apk add --no-cache tzdata
|
||
|
add package.json ./
|
||
|
copy --from=deps /app/node_modules /app/node_modules
|
||
|
copy --from=builder /app/dist /app/dist
|
||
|
|
||
|
entrypoint ["node", "/app/dist/main.js"]
|