1
0
Fork 0
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:
Ran Shamay 2023-11-22 13:14:09 +02:00
parent b2c7371913
commit 26787c086c

View file

@ -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