mirror of
https://github.com/luxdao/api.git
synced 2026-10-30 19:53:52 +00:00
26 lines
450 B
Docker
26 lines
450 B
Docker
# Indexer Service Dockerfile
|
|
FROM node:20-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# Install build dependencies
|
|
RUN apk add --no-cache git python3 make g++
|
|
|
|
# Copy package files
|
|
COPY package*.json ./
|
|
COPY pnpm-lock.yaml* ./
|
|
|
|
# Install pnpm
|
|
RUN npm install -g pnpm
|
|
|
|
# Install dependencies
|
|
RUN pnpm install --frozen-lockfile
|
|
|
|
# Copy application code
|
|
COPY . .
|
|
|
|
# Build the application
|
|
RUN pnpm build || echo "No build script"
|
|
|
|
# Start the indexer
|
|
CMD ["pnpm", "start:dev"] |