FROM node:24-alpine

WORKDIR /app

# Install dependencies
COPY package*.json ./
RUN npm install

# Copy source code
COPY . .

# Expose port
EXPOSE 3050

# Set environment variable for API URL (relative to the frontend host)
ENV VITE_API_URL=/api

# Start development server
CMD ["npm", "start"]
