FROM fascinated/docker-images:node-pnpm-latest ARG APP ENV APP=${APP} WORKDIR /usr/src/app # Copy root package.json and lockfile COPY package.json ./ COPY pnpm-lock.yaml ./ # Copy the app's sourse COPY apps/${APP} ./apps/${APP} RUN pnpm install RUN pnpm build --filter apps/${APP} EXPOSE 3000 CMD pnpm apps/$APP/dist/index.js