mirror of
https://github.com/PragmaticMachineLearning/probly.git
synced 2026-01-09 13:27:55 -05:00
This commit adds Docker support for easy deployment and improves browser compatibility: - Add Dockerfile and docker-compose.yml for containerized deployment - Fix Pyodide integration to work properly in browser-only mode - Add mock implementation for server-side rendering - Clean up markdown formatting in analysis output - Update README with Docker deployment instructions - Add platform-specific keyboard shortcuts (Mac/Windows) - Ensure public directory exists in Docker build - Fix TypeScript type definitions for Pyodide The application now properly handles the browser/server environment difference, with Python analysis running exclusively in the browser while the server provides API proxying and static file serving.
13 lines
240 B
YAML
13 lines
240 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
probly:
|
|
build:
|
|
context: .
|
|
args:
|
|
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
|
|
restart: unless-stopped |