fp/dockerfiles/uppy.dockerfile

16 lines
360 B
Plaintext
Raw Permalink Normal View History

2024-01-20 16:16:14 +00:00
FROM node:20-alpine as base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
WORKDIR /app
RUN corepack enable
FROM base as build
2024-07-06 08:49:51 +00:00
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/ .
2024-01-20 16:16:14 +00:00
FROM build as run
ENTRYPOINT ["pnpm"]
CMD ["start"]