1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 12:49:43 +02:00

build: Stop using base image

This commit is contained in:
Maksim Eltyshev 2023-12-01 18:02:19 +01:00
parent 709952ac4b
commit 0af96a21c8
3 changed files with 663 additions and 548 deletions

View file

@ -1,4 +1,8 @@
FROM ghcr.io/plankanban/planka:base-latest as server-dependencies
FROM node:18-alpine as server-dependencies
RUN apk -U upgrade \
&& apk add build-base python3 \
--no-cache
WORKDIR /app
@ -23,9 +27,11 @@ RUN npm install npm@latest --global \
COPY client .
RUN DISABLE_ESLINT_PLUGIN=true npm run build
FROM ghcr.io/plankanban/planka:base-latest
FROM node:18-alpine
RUN apk del vips-dependencies --purge
RUN apk -U upgrade \
&& apk add bash \
--no-cache
USER node
WORKDIR /app