FROM node:18-alpine

WORKDIR /app

# Copy package files
COPY package*.json ./

# Install dependencies (including pdfkit)
RUN npm ci --only=production

# Copy application code
COPY . .

# Expose port
EXPOSE 3024

# Start the server
CMD ["node", "server.js"]