mirror of
https://github.com/System-End/daydream-phoenix.git
synced 2026-04-19 20:55:11 +00:00
28 lines
510 B
Docker
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"]
|