The backend is designed to run TypeScript directly with Bun, not to build. Updated Dockerfile to skip build step and run src/index.ts directly.
21 lines
344 B
Docker
21 lines
344 B
Docker
FROM node:20-alpine AS base
|
|
WORKDIR /app
|
|
|
|
# Install Bun
|
|
RUN npm install -g bun
|
|
|
|
# Install dependencies
|
|
COPY package.json bun.lockb* ./
|
|
RUN bun install
|
|
|
|
# Copy source code
|
|
COPY . .
|
|
|
|
ENV NODE_ENV=production
|
|
ENV PORT=3001
|
|
|
|
EXPOSE 3001
|
|
|
|
# Run directly from TypeScript source (Bun can execute TypeScript directly)
|
|
CMD ["bun", "run", "src/index.ts"]
|