Something went wrong. Try again.
Monorepo for wisp.place. A static site hosting service built on top of the AT Protocol.
Something went wrong. Try again.
716 B · 31 lines
Dockerfile
1234567891011121314151617181920212223242526272829303132# Use official Bun imageFROM oven/bun:1.3 AS base
# Set working directoryWORKDIR /app
# Copy package filesCOPY package.json bun.lock ./
# Install dependenciesRUN bun install --frozen-lockfile --production
# Copy source codeCOPY src ./src
# Create cache directoryRUN mkdir -p ./cache/sites
# Set environment variables (can be overridden at runtime)ENV PORT=3001ENV NODE_ENV=production
# Expose the application portEXPOSE 3001
# Health checkHEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ CMD bun -e "fetch('http://localhost:3001/health').then(r => r.ok ? process.exit(0) : process.exit(1)).catch(() => process.exit(1))"
# Start the applicationCMD ["bun", "src/index.ts"]