FROM node:18-alpine
WORKDIR /app
# Copy package files and install dependencies
COPY package*.json ./
RUN npm ci --only=production
# Copy application files
COPY simple.js utils.js figmaService.js processor.js ./
# Create required directories
RUN mkdir -p logs examples/output examples/output/assets
# Set environment variables
ENV NODE_ENV=production
ENV FIGMA_TOKEN=DEFAULT_TOKEN_PLEASE_REPLACE
# Command to start the server
CMD ["node", "simple.js"]