This repository has been archived on 2025-06-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
server/Dockerfile-frontend-ui
Pierre-Olivier Mercier 046b38cc32
All checks were successful
continuous-integration/drone/push Build is passing
frontend: Use latest node version
2022-06-04 18:47:13 +02:00

16 lines
381 B
Text

FROM node: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