Files
Neon-Desk/backend/Dockerfile
Francesco 973f0c85fa Fix backend Dockerfile - remove unnecessary build step
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.
2026-02-18 06:37:53 +00:00

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"]