24 lines
426 B
Docker
24 lines
426 B
Docker
# Dockerfile for test-git-fcz5-handler
|
|
FROM node:20-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy package files
|
|
COPY package*.json ./
|
|
|
|
# Install dependencies (if any)
|
|
RUN npm install --production 2>/dev/null || true
|
|
|
|
# Copy application code
|
|
COPY . .
|
|
|
|
# Set environment variables
|
|
ENV NODE_ENV=production
|
|
|
|
# Expose port (default serverless port)
|
|
EXPOSE 8080
|
|
|
|
# Start command will be managed by the serverless runtime
|
|
CMD ["node", "handler.js"]
|
|
|