feat: add CapRover deployment files and env var validation
parent
0e86431b81
commit
fac2480b65
@ -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"]
|
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"schemaVersion": 2,
|
||||||
|
"dockerfilePath": "./Dockerfile"
|
||||||
|
}
|
Loading…
Reference in New Issue