forked from
nekomimi.pet/wisp.place-monorepo
Monorepo for Wisp.place. A static site hosting service built on top of the AT Protocol.
1# Use official Bun image
2FROM oven/bun:1.3 AS base
3
4# Set working directory
5WORKDIR /app
6
7# Copy package files
8COPY package.json bun.lock* ./
9
10# Install dependencies
11RUN bun install --frozen-lockfile
12
13# Copy source code
14COPY src ./src
15COPY public ./public
16
17# Build the application (if needed)
18RUN bun build \
19 --compile \
20 --minify \
21 --outfile server \
22 src/index.ts
23
24FROM scratch AS runtime
25WORKDIR /app
26COPY --from=base /app/server /app/server
27
28# Set environment variables (can be overridden at runtime)
29ENV PORT=3000
30ENV NODE_ENV=production
31
32# Expose the application port
33EXPOSE 3000
34
35# Start the application
36CMD ["./server"]