This commit is contained in:
Theo Browne
2026-02-20 03:51:29 -08:00
parent 1bfd3450c7
commit 25d84a994e
4 changed files with 24 additions and 1 deletions

8
.dockerignore Normal file
View File

@@ -0,0 +1,8 @@
node_modules
.git
.env
logs
*.sqlite
.DS_Store
.cursor
.idea

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM oven/bun:1 AS base
WORKDIR /app
# Install dependencies
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile --production
# Copy source
COPY . .
ENV NODE_ENV=production
EXPOSE ${PORT:-5109}
CMD ["bun", "server.ts"]

View File

@@ -4,6 +4,7 @@
"type": "module",
"private": true,
"scripts": {
"start": "bun server.ts",
"start:cli": "bun quipslop.tsx",
"start:web": "bun --hot server.ts"
},

View File

@@ -83,7 +83,7 @@ const server = Bun.serve({
clients.delete(ws);
},
},
development: {
development: process.env.NODE_ENV === "production" ? false : {
hmr: true,
console: true,
},