mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 20:39:41 +02:00
Move inactive projects out of active workspace: - bauntown (community website) - maerchenzauber (AI story generation) - memoro (voice memo app) - news (news aggregation) - nutriphi (nutrition tracking) - reader (reading app) - uload (URL shortener) - wisekeep (AI wisdom extraction) Update CLAUDE.md documentation: - Add presi to active projects - Document archived projects section - Update workspace configuration Archived apps can be re-activated by moving back to apps/ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
49 lines
1.3 KiB
Docker
49 lines
1.3 KiB
Docker
# Build stage
|
|
FROM node:20-alpine AS builder
|
|
|
|
# Install pnpm
|
|
RUN corepack enable && corepack prepare pnpm@latest --activate
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy root workspace files
|
|
COPY pnpm-workspace.yaml ./
|
|
COPY package.json pnpm-lock.yaml ./
|
|
|
|
# Copy the nutriphi-database package
|
|
COPY packages/nutriphi-database ./packages/nutriphi-database
|
|
|
|
# Copy the backend
|
|
COPY apps/nutriphi/apps/backend ./apps/nutriphi/apps/backend
|
|
|
|
# Install dependencies
|
|
RUN pnpm install --frozen-lockfile --filter @nutriphi/backend...
|
|
|
|
# Build the database package first
|
|
RUN pnpm --filter @manacore/nutriphi-database build
|
|
|
|
# Build the backend
|
|
RUN pnpm --filter @nutriphi/backend build
|
|
|
|
# Production stage
|
|
FROM node:20-alpine AS runner
|
|
|
|
RUN corepack enable && corepack prepare pnpm@latest --activate
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy built files
|
|
COPY --from=builder /app/apps/nutriphi/apps/backend/dist ./dist
|
|
COPY --from=builder /app/apps/nutriphi/apps/backend/package.json ./
|
|
COPY --from=builder /app/apps/nutriphi/apps/backend/node_modules ./node_modules
|
|
COPY --from=builder /app/packages/nutriphi-database/dist ./node_modules/@manacore/nutriphi-database/dist
|
|
COPY --from=builder /app/packages/nutriphi-database/package.json ./node_modules/@manacore/nutriphi-database/
|
|
|
|
# Set environment
|
|
ENV NODE_ENV=production
|
|
|
|
# Expose port
|
|
EXPOSE 3002
|
|
|
|
# Start the application
|
|
CMD ["node", "dist/main.js"]
|