fix: build shared packages and use the mapped CI database port
This commit is contained in:
1 parent
62db511c7b
commit
b4e9651529
2 files changed
+4
-3
No files matched your search
+2
-1
@@ -8,7 +8,7 @@ COPY shared/package.json shared/package-lock.json /shared/
|
||||
COPY shared/packages/design-tokens/package.json /shared/packages/design-tokens/
|
||||
COPY shared/packages/node-backend/package.json /shared/packages/node-backend/
|
||||
COPY shared/packages/web-ui/package.json /shared/packages/web-ui/
|
||||
RUN npm ci --prefix /shared --ignore-scripts --no-audit --no-fund --omit=dev
|
||||
RUN npm ci --prefix /shared --ignore-scripts --no-audit --no-fund
|
||||
RUN --mount=type=cache,target=/root/.npm \
|
||||
for attempt in 1 2 3 4 5; do \
|
||||
npm ci && break; \
|
||||
@@ -20,6 +20,7 @@ RUN --mount=type=cache,target=/root/.npm \
|
||||
COPY shared/packages/design-tokens /shared/packages/design-tokens
|
||||
COPY shared/packages/node-backend /shared/packages/node-backend
|
||||
COPY shared/packages/web-ui /shared/packages/web-ui
|
||||
RUN npm run build --prefix /shared
|
||||
COPY frontend/ ./
|
||||
RUN rm -rf /frontend/node_modules/@gabriel20xx/web-ui && \
|
||||
ln -s /shared/packages/web-ui /frontend/node_modules/@gabriel20xx/web-ui
|
||||
|
||||
Reference in new issue
Block a user