27 lines
540 B
Text
Executable file
27 lines
540 B
Text
Executable file
# =============================================================================
|
|
# Analytics API Dockerfile for E2E Testing
|
|
# =============================================================================
|
|
FROM node:22-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# Install pnpm
|
|
RUN npm install -g pnpm
|
|
|
|
# Copy package files
|
|
COPY package.json pnpm-lock.yaml* ./
|
|
|
|
# Install dependencies
|
|
RUN pnpm install --frozen-lockfile
|
|
|
|
# Copy source code
|
|
COPY . .
|
|
|
|
# Build the application
|
|
RUN pnpm build
|
|
|
|
# Expose port
|
|
EXPOSE 3000
|
|
|
|
# Start the server
|
|
CMD ["node", "dist/main.js"]
|