{{#if isBun}}FROM oven/bun:1{{else}}FROM node:24{{/if}}

WORKDIR /usr/src/app

{{#if needsCorepack}}RUN corepack enable
{{/if}}COPY package.json {{pmLockfile}} ./
RUN {{pmCiInstall}}
COPY . .
RUN {{pmRunScript "build"}}
# Set after the install and build steps, which need the dev dependencies.
ENV NODE_ENV=production
