# Use Node.js LTS version
FROM node:18-alpine

# Set working directory
WORKDIR /app

# Copy package files
COPY package*.json ./

# Install dependencies
RUN npm ci --only=production

# Copy application files
COPY . .

# Expose port
EXPOSE 3030

# Set environment variable with default value
ENV THREEDS_BASE_URL=https://example.threeds.tech

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