build: Stop using base image

This commit is contained in:
Maksim Eltyshev
2023-12-01 18:02:19 +01:00
parent eddeb96b16
commit f1fed3e533
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