fp/d.uppy.dockerfile

16 lines
360 B
Docker

FROM node:20-alpine as base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
WORKDIR /app
RUN corepack enable
FROM base as build
COPY ./packages/uppy/package.json ./packages/uppy/pnpm-lock.yaml /app
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
COPY ./packages/uppy/ .
FROM build as run
ENTRYPOINT ["pnpm"]
CMD ["start"]