27 lines
498 B
Docker
27 lines
498 B
Docker
FROM node:24
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Copy package files first for better layer caching
|
|
COPY package*.json tsconfig.json ./
|
|
|
|
# Install dependencies including devDependencies
|
|
RUN npm ci --include=dev
|
|
|
|
# Copy source files
|
|
COPY src/ src/
|
|
COPY markdown/ markdown/
|
|
COPY examples/ examples/
|
|
COPY util/ util/
|
|
COPY README.md ./
|
|
|
|
# Build the application
|
|
RUN npm run build
|
|
|
|
# Set environment variables
|
|
ENV NODE_ENV=test
|
|
|
|
# Command to run the application
|
|
CMD ["node", "dist/examples/app.js"]
|