mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 12:49:43 +02:00
Add start script for Docker image, pre-commit lint check, package.json scripts cleanup
This commit is contained in:
parent
5e17a4880a
commit
e0dee1efef
11 changed files with 1236 additions and 11 deletions
11
Dockerfile
11
Dockerfile
|
@ -3,8 +3,8 @@ 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/v3.10/community/ \
|
||||
--repository https://alpine.global.ssl.fastly.net/alpine/v3.10/main/
|
||||
--repository https://alpine.global.ssl.fastly.net/alpine/v3.10/community/ \
|
||||
--repository https://alpine.global.ssl.fastly.net/alpine/v3.10/main/
|
||||
|
||||
COPY server/package.json server/package-lock.json ./
|
||||
|
||||
|
@ -25,7 +25,7 @@ RUN npm run build
|
|||
FROM node:alpine
|
||||
|
||||
RUN apk add bash vips --no-cache \
|
||||
--repository https://alpine.global.ssl.fastly.net/alpine/v3.10/community/
|
||||
--repository https://alpine.global.ssl.fastly.net/alpine/v3.10/community/
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
@ -33,6 +33,9 @@ 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
|
||||
COPY docker-start.sh start.sh
|
||||
|
||||
RUN chmod +x start.sh
|
||||
|
||||
ENV BASE_URL DATABASE_URL
|
||||
|
||||
|
@ -41,4 +44,4 @@ VOLUME /app/public/attachments
|
|||
|
||||
EXPOSE 1337
|
||||
|
||||
CMD ["npm", "start"]
|
||||
CMD ["./start.sh"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue