pubg/Dockerfile

22 lines
391 B
Docker
Raw Normal View History

2024-12-26 18:16:46 +11:00
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"]