mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
Fix deployment
This commit is contained in:
@@ -3,11 +3,13 @@ FROM node:24 AS frontend
|
|||||||
|
|
||||||
# 1.1. Install npm dependencies
|
# 1.1. Install npm dependencies
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
# Copy package.json and workspace package directory first (needed for workspace resolution)
|
||||||
COPY package.json .
|
COPY package.json .
|
||||||
|
COPY frontend/packages/ frontend/packages/
|
||||||
RUN --mount=type=cache,target=/root/.npm \
|
RUN --mount=type=cache,target=/root/.npm \
|
||||||
npm install --ignore-scripts
|
npm install --ignore-scripts
|
||||||
|
|
||||||
# 1.2. Build
|
# 1.2. Copy remaining frontend code and build
|
||||||
COPY frontend frontend
|
COPY frontend frontend
|
||||||
RUN npm run frontend:build
|
RUN npm run frontend:build
|
||||||
|
|
||||||
|
|||||||
@@ -329,6 +329,7 @@ for SERVICE in $SERVICES; do
|
|||||||
echo ""
|
echo ""
|
||||||
else
|
else
|
||||||
error "Build failed for $SERVICE"
|
error "Build failed for $SERVICE"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user