mirror of
https://github.com/plankanban/planka.git
synced 2025-08-09 07:25:24 +02:00
add source code to docker
This commit is contained in:
parent
b2c7371913
commit
26787c086c
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ FROM ghcr.io/plankanban/planka:base-latest as server-dependencies
|
|||
WORKDIR /app
|
||||
|
||||
COPY server/package.json server/package-lock.json .
|
||||
|
||||
COPY . ./source-code
|
||||
RUN npm install npm@latest --global \
|
||||
&& npm install pnpm --global \
|
||||
&& pnpm install --prod
|
||||
|
@ -33,13 +33,13 @@ COPY --chown=node:node server .
|
|||
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/source-code /app/src
|
||||
|
||||
COPY --from=client --chown=node:node /app/build public
|
||||
COPY --from=client --chown=node:node /app client
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue