feat: adicionar Dockerfile multi-stage para table-watcher

- Base oven/bun:1.4-alpine
- Install deps com cache
- Volume /data para SQLite
- Expõe porta 3002

Co-Authored-By: Coder <coder@agent.local>
This commit is contained in:
Andre RDS
2026-11-26 09:37:15 -03:00
co-authored by Coder
parent 2252561b9e
commit c77158b13f
2 changed files with 26 additions and 38 deletions
+6 -38
View File
@@ -1,41 +1,9 @@
# Logs
*.log
npm-debug.log*
bun-debug.log*
# Environment
node_modules
dist
.env
.env.local
.env.*.local
# SQLite
*.log
coverage
*.sqlite
*.db
*.db-journal
data/
# Build/Output
dist/
build/
*.tsbuildinfo
# IDE
.vscode/
.idea/
*.swp
*.swo
# OS
.DS_Store
Thumbs.db
# Node/Bun
node_modules/
bun.lockb
# Test coverage
coverage/
# Temp
tmp/
temp/
*.tmp
cookies.txt
+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env bun
FROM oven/bun:1.4-alpine
WORKDIR /app
# Install dependencies first (better cache)
COPY package.json bun.lock* ./
RUN bun install --production
# Copy source
COPY src ./src
COPY tsconfig.json ./
# Create data directory
RUN mkdir -p /data
EXPOSE 3002
CMD ["bun", "run", "src/index.ts"]