feat: updade workspace
This commit is contained in:
+6
-6
@@ -10,19 +10,19 @@ ARG VITE_API_BASE_URL=/api/v1
|
||||
ENV VITE_API_BASE_URL=$VITE_API_BASE_URL
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
COPY frontend/package.json ./frontend/
|
||||
COPY backend/package.json ./backend/
|
||||
COPY apps/okr/frontend/package.json ./apps/okr/frontend/
|
||||
COPY apps/okr/backend/package.json ./apps/okr/backend/
|
||||
|
||||
RUN npm ci -w frontend
|
||||
RUN npm ci -w @ainative-okr/frontend
|
||||
|
||||
COPY frontend ./frontend
|
||||
COPY apps/okr/frontend ./apps/okr/frontend
|
||||
|
||||
RUN npm run build -w frontend
|
||||
RUN npm run build -w @ainative-okr/frontend
|
||||
|
||||
# ─── Stage 2: nginx runtime ──────────────────────────────────────────────────
|
||||
FROM nginx:alpine AS runtime
|
||||
|
||||
COPY --from=builder /app/frontend/dist /usr/share/nginx/html
|
||||
COPY --from=builder /app/apps/okr/frontend/dist /usr/share/nginx/html
|
||||
COPY nginx/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
Reference in New Issue
Block a user