feat: initial ImportEx API setup with Hono + Drizzle + PostgreSQL
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
- Hono server with CORS and logging middleware - Drizzle ORM with PostgreSQL schema (users table) - Environment config with Zod validation - Dockerfile for production deployment - Gitea Actions workflows for dev/main deployment to Coolify - Health check route
This commit is contained in:
22
Dockerfile
Normal file
22
Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
FROM oven/bun:1 AS base
|
||||
WORKDIR /app
|
||||
|
||||
FROM base AS install
|
||||
COPY package.json bun.lockb ./
|
||||
RUN bun install --frozen-lockfile
|
||||
|
||||
FROM base AS build
|
||||
COPY --from=install /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
RUN bun run typecheck
|
||||
|
||||
FROM base AS release
|
||||
COPY --from=build /app/node_modules ./node_modules
|
||||
COPY --from=build /app/src ./src
|
||||
COPY --from=build /app/drizzle.config.ts ./
|
||||
COPY --from=build /app/package.json ./
|
||||
|
||||
ENV NODE_ENV=production
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["bun", "run", "src/server.ts"]
|
||||
Reference in New Issue
Block a user