Monorepo for wisp.place. A static site hosting service built on top of the AT Protocol. wisp.place

dockerfiles

+38 -1
+2 -1
Dockerfile
··· 11 11 COPY packages ./packages 12 12 COPY apps/main-app/package.json ./apps/main-app/package.json 13 13 COPY apps/hosting-service/package.json ./apps/hosting-service/package.json 14 + COPY apps/firehose-service/package.json ./apps/firehose-service/package.json 14 15 15 16 # Install all dependencies (including workspaces) 16 17 RUN bun install --frozen-lockfile ··· 48 49 49 50 EXPOSE 8000 50 51 51 - CMD ["./server"] 52 + CMD ["./server"]
+35
apps/firehose-service/Dockerfile
··· 1 + # Build from monorepo root: docker build -f apps/firehose-service/Dockerfile . 2 + 3 + # Stage 1: Install dependencies 4 + FROM oven/bun:1-alpine AS builder 5 + 6 + WORKDIR /app 7 + 8 + # Copy workspace configuration files 9 + COPY package.json bun.lock tsconfig.json ./ 10 + 11 + # Copy all workspace packages (needed for workspace: dependencies) 12 + COPY packages ./packages 13 + COPY apps/firehose-service ./apps/firehose-service 14 + COPY apps/main-app/package.json ./apps/main-app/package.json 15 + COPY apps/hosting-service/package.json ./apps/hosting-service/package.json 16 + COPY cli/package.json ./cli/package.json 17 + 18 + # Install dependencies 19 + RUN bun install --frozen-lockfile 20 + 21 + # Stage 2: Runtime 22 + FROM oven/bun:1-alpine AS runtime 23 + 24 + WORKDIR /app 25 + 26 + # Copy workspace and dependencies from builder 27 + COPY --from=builder /app /app 28 + 29 + WORKDIR /app/apps/firehose-service 30 + 31 + ENV NODE_ENV=production 32 + ENV HEALTH_PORT=3001 33 + 34 + # Start the firehose service 35 + CMD ["bun", "run", "start"]
+1
apps/hosting-service/Dockerfile
··· 13 13 COPY packages ./packages 14 14 COPY apps/hosting-service ./apps/hosting-service 15 15 COPY apps/main-app/package.json ./apps/main-app/package.json 16 + COPY apps/firehose-service/package.json ./apps/firehose-service/package.json 16 17 COPY cli/package.json ./cli/package.json 17 18 18 19 # Install dependencies