mirror of
https://github.com/plankanban/planka.git
synced 2025-08-10 16:05:35 +02:00
chore: update docker
This commit is contained in:
parent
3286b1a397
commit
c6b69b8632
2 changed files with 7 additions and 2 deletions
|
@ -8,6 +8,8 @@ WORKDIR /app
|
|||
|
||||
COPY server/package.json server/package-lock.json ./
|
||||
|
||||
RUN mkdir logs
|
||||
|
||||
RUN npm install npm@latest --global \
|
||||
&& npm install pnpm --global \
|
||||
&& pnpm import \
|
||||
|
@ -17,6 +19,7 @@ FROM node:lts AS client
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
COPY client/package.json client/package-lock.json ./
|
||||
|
||||
RUN npm install npm@latest --global \
|
||||
|
@ -40,13 +43,14 @@ COPY --chown=node:node start.sh .
|
|||
COPY --chown=node:node server .
|
||||
COPY --chown=node:node healthcheck.js .
|
||||
|
||||
RUN mv .env.sample .env
|
||||
|
||||
COPY --from=server-dependencies --chown=node:node /app/node_modules node_modules
|
||||
COPY --from=server-dependencies --chown=node:node /app/logs logs
|
||||
|
||||
|
||||
COPY --from=client --chown=node:node /app/build public
|
||||
COPY --from=client --chown=node:node /app/build/index.html views/index.ejs
|
||||
|
||||
|
||||
VOLUME /app/public/user-avatars
|
||||
VOLUME /app/public/project-background-images
|
||||
VOLUME /app/private/attachments
|
||||
|
|
|
@ -3,6 +3,7 @@ version: '3'
|
|||
services:
|
||||
planka:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./Dockerfile
|
||||
restart: on-failure
|
||||
volumes:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue