diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..279afb2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +# Use official Bun image for optimal performance +FROM oven/bun:1.1 as base +WORKDIR /app + +# Install dependencies first (better layer caching) +COPY package.json bun.lock ./ +RUN bun install --frozen-lockfile + +# Copy all source files +COPY . . + +# Server runs on port 3007 by default (override with PORT env var) +EXPOSE 3007 + +# Start the server (env vars will be injected by CapRover) +CMD ["bun", "run", "index.ts"] diff --git a/captain-definition b/captain-definition new file mode 100644 index 0000000..0e14f82 --- /dev/null +++ b/captain-definition @@ -0,0 +1,4 @@ +{ + "schemaVersion": 2, + "dockerfilePath": "./Dockerfile" +}