17 lines
293 B
Docker
17 lines
293 B
Docker
|
FROM node:22-slim AS base
|
||
|
|
||
|
ENV PNPM_HOME="/pnpm"
|
||
|
ENV PATH="$PNPM_HOME:$PATH"
|
||
|
RUN corepack enable
|
||
|
|
||
|
WORKDIR /app
|
||
|
|
||
|
COPY package.json pnpm-lock.yaml .
|
||
|
|
||
|
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile
|
||
|
|
||
|
COPY index.js .
|
||
|
|
||
|
EXPOSE 8000
|
||
|
|
||
|
CMD [ "node", "index.js" ]
|