fp/link2cid.dockerfile
Chris Grimmett 54f519680e
Some checks failed
ci / build (push) Failing after 32s
use dockerfile
2024-03-29 02:14:18 -08:00

14 lines
336 B
Docker

# Reference-- https://pnpm.io/docker
FROM node:20-alpine AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
WORKDIR /app
COPY ./packages/link2cid/package.json /app
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod
COPY ./packages/link2cid/index.js /app
ENTRYPOINT ["pnpm"]
CMD ["start"]