daydream-phoenix/Dockerfile
2025-07-21 10:28:28 -04:00

28 lines
510 B
Docker

# Use Node.js LTS version
FROM node:20-alpine
# Set the working directory
WORKDIR /app
# Copy package files
COPY package.json bun.lock* package-lock.json* ./
# Install all dependencies (needed for build)
RUN npm ci
# Copy source code
COPY . .
# Set placeholder environment variables for build
ENV AIRTABLE_API_KEY=""
ENV AIRTABLE_BASE_ID=""
ENV AIRTABLE_TABLE_NAME=""
# Build the application
RUN npm run build
# Expose the port the app runs on
EXPOSE 3000
# Start the application
CMD ["node", "build"]