mirror of
https://github.com/plankanban/planka.git
synced 2025-08-09 15:35:29 +02:00
Update debian.Dockerfile
This commit is contained in:
parent
24a24841f5
commit
58a1db17aa
1 changed files with 3 additions and 2 deletions
|
@ -3,14 +3,14 @@ ARG NODE_V=18-bookworm
|
|||
FROM node:${NODE_V} as builder
|
||||
RUN apt-get update && \
|
||||
apt-get install -y tini && \
|
||||
npm install pnpm --global && \
|
||||
pnpm config set store-dir /root/.pnpm-store
|
||||
npm install pnpm --global
|
||||
|
||||
#FROM builder as server-dependencies
|
||||
WORKDIR /planka/server
|
||||
|
||||
COPY server/package.json server/pnpm-lock.yaml ./
|
||||
RUN --mount=type=cache,id=pnpm-store,target=/root/.pnpm-store \
|
||||
--mount=type=cache,id=node-gyp,target=/root/.cache/node-gyp \
|
||||
pnpm install --frozen-lockfile --prod
|
||||
COPY server .
|
||||
|
||||
|
@ -19,6 +19,7 @@ WORKDIR /planka/client
|
|||
|
||||
COPY client/package.json client/pnpm-lock.yaml ./
|
||||
RUN --mount=type=cache,id=pnpm-store,target=/root/.pnpm-store \
|
||||
--mount=type=cache,id=node-gyp,target=/root/.cache/node-gyp \
|
||||
pnpm install --frozen-lockfile --prod
|
||||
COPY client .
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue