From ea438c73db03f0565dc12bc32b27aaf186af5fdc Mon Sep 17 00:00:00 2001 From: ElementalAlchemist Date: Thu, 7 Nov 2024 23:59:11 -0600 Subject: [PATCH] Update Dockerfile to build Thrimbletrimmer when building images --- nginx/Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nginx/Dockerfile b/nginx/Dockerfile index 2a9af73..cc12f5c 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -4,10 +4,16 @@ ADD buscribe-web /assets WORKDIR /assets RUN lessc style.less > style.css +FROM node:23.1-alpine AS thrim +ADD thrimbletrimmer /assets +WORKDIR /assets +RUN npm install +RUN npm run build + # nginx container contains config that exposes all the various services metrics FROM nginx:latest ADD nginx/generate-config / COPY --from=less /assets /etc/nginx/html/buscribe -COPY thrimbletrimmer /etc/nginx/html/thrimbletrimmer +COPY --from=thrim /assets/dist /etc/nginx/html/thrimbletrimmer LABEL org.opencontainers.image.source https://github.com/dbvideostriketeam/wubloader ENTRYPOINT ["/bin/sh", "-c", "/generate-config && nginx -g \"daemon off;\""]