build: refactor production containers

Production containers now copy the Zeppelin source files at
build-time rather than using a shared volume. This means fewer
permission issues and backend/dashboard builds only have to run once
at build-time, not every time the containers are started.

Docs in PRODUCTION.md have been updated accordingly.
This commit is contained in:
Dragory 2023-07-01 10:33:35 +00:00
parent b60a7fb145
commit b67b3c35b7
No known key found for this signature in database
8 changed files with 60 additions and 64 deletions

View file

@ -0,0 +1,9 @@
FROM node:18
USER node
COPY --chown=node:node . /zeppelin
WORKDIR /zeppelin/backend
RUN ls -lah
RUN pwd
RUN npm ci && npm run build