write-ups-challenges-2024-2025/bob-the-assistant/backend/Dockerfile
2024-11-25 22:28:00 +01:00

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" ]