mirror of https://github.com/ekimekim/wubloader
Serve buscribe-web out of the main nginx container, like thrimbletrimmer
This involves, as part of the nginx build process, having a build container that runs less in order to render the css before copying it over.pull/414/head
parent
2d40893825
commit
510af15418
@ -1,6 +1,13 @@
|
|||||||
|
FROM node:17-alpine AS less
|
||||||
|
RUN npm install less -g
|
||||||
|
ADD buscribe-web /assets
|
||||||
|
WORKDIR /assets
|
||||||
|
RUN lessc style.less > style.css
|
||||||
|
|
||||||
# nginx container contains config that exposes all the various services metrics
|
# nginx container contains config that exposes all the various services metrics
|
||||||
FROM nginx:latest
|
FROM nginx:latest
|
||||||
ADD nginx/generate-config /
|
ADD nginx/generate-config /
|
||||||
|
COPY --from=less /assets /etc/nginx/html/buscribe
|
||||||
COPY thrimbletrimmer /etc/nginx/html/thrimbletrimmer
|
COPY thrimbletrimmer /etc/nginx/html/thrimbletrimmer
|
||||||
LABEL org.opencontainers.image.source https://github.com/dbvideostriketeam/wubloader
|
LABEL org.opencontainers.image.source https://github.com/dbvideostriketeam/wubloader
|
||||||
ENTRYPOINT ["/bin/sh", "-c", "/generate-config && nginx -g \"daemon off;\""]
|
ENTRYPOINT ["/bin/sh", "-c", "/generate-config && nginx -g \"daemon off;\""]
|
||||||
|
Loading…
Reference in New Issue