pubg/Dockerfile

24 lines
416 B
Docker
Raw Permalink 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
2024-12-26 19:21:46 +11:00
env TZ=Australia/Sydney
2024-12-26 18:16:46 +11:00
entrypoint ["node", "/app/dist/main.js"]