]> git.r.bdr.sh - rbdr/junction/blame_incremental - server/Dockerfile
Update all versions
[rbdr/junction] / server / Dockerfile
... / ...
CommitLineData
1FROM node:20-alpine AS base
2ENV PNPM_HOME="/pnpm"
3ENV PATH="$PNPM_HOME:$PATH"
4RUN corepack enable
5COPY . /app
6WORKDIR /app
7
8FROM base AS dependencies
9RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
10
11FROM base
12COPY --from=dependencies /app/node_modules /app/node_modules
13EXPOSE 8000
14CMD [ "node", "./index.js" ]