fp/d.link2cid.dockerfile

15 lines
374 B
Plaintext
Raw Normal View History

2024-03-29 10:14:18 +00:00
# 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
2024-04-25 00:05:05 +00:00
COPY ./packages/link2cid/src /app/src
2024-03-29 10:14:18 +00:00
ENTRYPOINT ["pnpm"]
CMD ["start"]