1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 20:59:44 +02:00
planka/Dockerfile

38 lines
739 B
Text
Raw Normal View History

FROM node:lts AS client-builder
WORKDIR /app
COPY client/package.json client/package-lock.json ./
RUN npm install npm@latest --global \
&& npm install
COPY client .
RUN npm run build
FROM ghcr.io/plankanban/planka:base-latest
WORKDIR /app
COPY server/.npmrc server/package.json server/package-lock.json ./
2022-05-21 23:52:12 +05:00
RUN npm install npm@latest --global \
&& npm install --production \
2022-05-21 23:52:12 +05:00
&& apk del vips-dependencies --purge
COPY docker-start.sh start.sh
COPY server .
RUN cp .env.sample .env
COPY --from=client-builder /app/build public
COPY --from=client-builder /app/build/index.html views
2020-04-21 05:04:34 +05:00
VOLUME /app/public/user-avatars
2020-05-26 01:27:32 +05:00
VOLUME /app/public/project-background-images
VOLUME /app/private/attachments
EXPOSE 1337
CMD ["./start.sh"]