Docker: remove ui to speedup build process

This commit is contained in:
andig 2022-09-29 16:21:07 +02:00
parent cf8e9bb298
commit 38b3506d22

View file

@ -1,22 +1,22 @@
# STEP 1 build ui
FROM --platform=$BUILDPLATFORM node:16-alpine as node
# # STEP 1 build ui
# FROM --platform=$BUILDPLATFORM node:16-alpine as node
RUN apk update && apk add --no-cache make alpine-sdk
# RUN apk update && apk add --no-cache make alpine-sdk
WORKDIR /build
# WORKDIR /build
# install node tools
COPY package*.json ./
RUN npm ci
# # install node tools
# COPY package*.json ./
# RUN npm ci
# build ui
COPY Makefile .
COPY assets assets
COPY vite.config.js vite.config.js
COPY .eslintrc.js .eslintrc.js
COPY postcss.config.js postcss.config.js
# # build ui
# COPY Makefile .
# COPY assets assets
# COPY vite.config.js vite.config.js
# COPY .eslintrc.js .eslintrc.js
# COPY postcss.config.js postcss.config.js
RUN make clean ui
# RUN make clean ui
# STEP 2 build executable binary
@ -45,7 +45,7 @@ COPY . .
RUN make assets
# copy ui
COPY --from=node /build/dist /build/dist
# COPY --from=node /build/dist /build/dist
# build
ARG TARGETOS