litellmGUI / backend /Dockerfile
github-actions[bot]
deploy: 33add61 — 更新 Dockerfile
d1c780a
raw
history blame contribute delete
510 Bytes
FROM node:20-alpine AS base
WORKDIR /app
# Install build dependencies for better-sqlite3
RUN apk add --no-cache python3 make g++ curl
COPY package*.json ./
# BUG FIX: --only=production was deprecated in npm v7 and removed in npm v10
# (shipped with Node 20). Use --omit=dev instead.
RUN npm ci --omit=dev
COPY src/ ./src/
RUN mkdir -p /app/data
EXPOSE 3001
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s \
CMD curl -f http://localhost:3001/api/health || exit 1
CMD ["node", "src/index.js"]