add:deploy stuff

This commit is contained in:
2026-03-10 00:17:00 +09:00
parent 5264b81466
commit 3e3d644649
10 changed files with 211 additions and 52 deletions

18
backend/Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM oven/bun:1-alpine
WORKDIR /app
COPY package.json ./
COPY drizzle.config.ts ./
COPY drizzle/ ./drizzle/
COPY src/ ./src/
RUN bun install --frozen-lockfile
COPY entrypoint.sh ./
RUN chmod +x entrypoint.sh
EXPOSE 4500
ENTRYPOINT ["./entrypoint.sh"]

8
backend/entrypoint.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
set -e
echo "Running database migrations..."
bun run db:migrate
echo "Starting server..."
exec bun run src/index.ts