Something went wrong. Try again.
Monorepo for wisp.place. A static site hosting service built on top of the AT Protocol. forked from nekomimi.pet/wisp.place-monorepo
Something went wrong. Try again.
wisp.place-monorepo Dockerfile
630 B · 36 lines
Dockerfile
12345678910111213141516171819202122232425262728293031323334353637# 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
# Copy source codeCOPY src ./srcCOPY public ./public
# Build the application (if needed)RUN bun build \ --compile \ --minify \ --outfile server \ src/index.ts
FROM scratch AS runtimeWORKDIR /appCOPY --from=base /app/server /app/server
# Set environment variables (can be overridden at runtime)ENV PORT=3000ENV NODE_ENV=production
# Expose the application portEXPOSE 3000
# Start the applicationCMD ["./server"]