FROM node:20-alpine WORKDIR /app # Install dependencies for better-sqlite3 RUN apk add --no-cache python3 make g++ # Copy package files and install COPY package.json yarn.lock ./ RUN yarn install # Copy source COPY . . # Build TypeScript RUN yarn build EXPOSE 3000 CMD ["node", "dist/index.js"]