CI: Add Dockerfile just containing the ui files

This commit is contained in:
nemunaire 2021-09-05 06:02:45 +02:00
parent 5fa94ecbed
commit 9367d99a05
2 changed files with 31 additions and 0 deletions

16
Dockerfile-frontend-ui Normal file
View file

@ -0,0 +1,16 @@
FROM node:lts-alpine as nodebuild
WORKDIR /ui
RUN apk --no-cache add python2 build-base
COPY frontend/ui/ .
RUN npm install --network-timeout=100000 && \
sed -i 's!@popperjs/core/dist/esm/popper!@popperjs/core!' node_modules/sveltestrap/src/*.js node_modules/sveltestrap/src/*.svelte && \
npm run build
FROM scratch
COPY --from=nodebuild /ui/build/ /www/htdocs-frontend