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