mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 12:49:43 +02:00
Docker, update readme, update dependencies
This commit is contained in:
parent
2398199740
commit
adbcb67f03
30 changed files with 1202 additions and 1744 deletions
43
Dockerfile
Normal file
43
Dockerfile
Normal file
|
@ -0,0 +1,43 @@
|
|||
FROM node:alpine AS server-builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apk add vips-dev fftw-dev build-base python --no-cache \
|
||||
--repository https://alpine.global.ssl.fastly.net/alpine/edge/community/ \
|
||||
--repository https://alpine.global.ssl.fastly.net/alpine/edge/main/
|
||||
|
||||
COPY server/package.json server/package-lock.json ./
|
||||
|
||||
RUN npm i --prod --silent
|
||||
|
||||
FROM node:alpine AS client-builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY client/package.json client/package-lock.json ./
|
||||
|
||||
RUN npm i --silent
|
||||
|
||||
COPY client .
|
||||
|
||||
RUN npm run build
|
||||
|
||||
FROM node:alpine
|
||||
|
||||
RUN apk add bash vips --no-cache \
|
||||
--repository https://alpine.global.ssl.fastly.net/alpine/edge/community/
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=server-builder /app/node_modules node_modules
|
||||
COPY server .
|
||||
COPY --from=client-builder /app/build public
|
||||
COPY --from=client-builder /app/build/index.html views
|
||||
|
||||
ENV BASE_URL DATABASE_URL
|
||||
|
||||
VOLUME /app/public/uploads
|
||||
|
||||
EXPOSE 1337
|
||||
|
||||
CMD ["npm", "start"]
|
Loading…
Add table
Add a link
Reference in a new issue