FROM node:18-alpine WORKDIR /app COPY package*.json ./ RUN npm install COPY . . # Build frontend + transpile backend RUN npm install # Required port for Hugging Face EXPOSE 7860 # Run backend server CMD ["npm", "start"]