| FROM lobehub/lobe-chat | |
| WORKDIR /app | |
| # Install dependencies using apk (Alpine Linux package manager) | |
| # Install Ollama | |
| RUN curl -fsSL https://ollama.com/install.sh | sh | |
| # Copy application code | |
| COPY . . | |
| # Set environment variable for cross-origin access | |
| ENV OLLAMA_ORIGINS="*" | |
| # Expose the port | |
| EXPOSE 7860 | |
| # Set the port environment variable | |
| ENV PORT=7860 | |
| # Command to run the application | |
| CMD ["node", "server.js", "--port", "7860"] | |