Docker: remove ui to speedup build process
This commit is contained in:
parent
cf8e9bb298
commit
38b3506d22
1 changed files with 15 additions and 15 deletions
30
Dockerfile
30
Dockerfile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue