mirror of
https://github.com/zebrajr/localGPT.git
synced 2025-12-06 00:20:19 +01:00
- Replaced existing localGPT codebase with multimodal RAG implementation - Includes full-stack application with backend, frontend, and RAG system - Added Docker support and comprehensive documentation - Enhanced with multimodal capabilities for document processing - Preserved git history for localGPT while integrating new functionality
31 lines
680 B
Docker
31 lines
680 B
Docker
FROM node:18-alpine
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Install dependencies (including dev dependencies for build)
|
|
COPY package.json package-lock.json ./
|
|
RUN npm ci
|
|
|
|
# Copy source code and configuration files
|
|
COPY src/ ./src/
|
|
COPY public/ ./public/
|
|
COPY next.config.ts ./
|
|
COPY tsconfig.json ./
|
|
COPY tailwind.config.js ./
|
|
COPY postcss.config.mjs ./
|
|
COPY eslint.config.mjs ./
|
|
|
|
# Build the application (skip linting for Docker)
|
|
ENV NEXT_LINT=false
|
|
RUN npm run build
|
|
|
|
# Expose port
|
|
EXPOSE 3000
|
|
|
|
# Health check
|
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
|
CMD curl -f http://localhost:3000 || exit 1
|
|
|
|
# Start the application
|
|
CMD ["npm", "start"] |