diff --git a/Dockerfile b/Dockerfile index 3b5a74cde..97a0fd089 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,20 +24,26 @@ ARG ANTHROPIC_API_KEY ARG OPEN_ROUTER_API_KEY ARG GOOGLE_GENERATIVE_AI_API_KEY ARG OLLAMA_API_BASE_URL +ARG OPENAI_LIKE_API_KEY +ARG OPENAI_LIKE_BASE_URL +ARG DEEPSEEK_API_KEY ARG VITE_LOG_LEVEL=debug ENV WRANGLER_SEND_METRICS=false \ - GROQ_API_KEY=${GROQ_API_KEY} \ - OPENAI_API_KEY=${OPENAI_API_KEY} \ - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY} \ - OPEN_ROUTER_API_KEY=${OPEN_ROUTER_API_KEY} \ - GOOGLE_GENERATIVE_AI_API_KEY=${GOOGLE_GENERATIVE_AI_API_KEY} \ - OLLAMA_API_BASE_URL=${OLLAMA_API_BASE_URL} \ - VITE_LOG_LEVEL=${VITE_LOG_LEVEL} + GROQ_API_KEY=${GROQ_API_KEY} \ + OPENAI_API_KEY=${OPENAI_API_KEY} \ + ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY} \ + OPEN_ROUTER_API_KEY=${OPEN_ROUTER_API_KEY} \ + GOOGLE_GENERATIVE_AI_API_KEY=${GOOGLE_GENERATIVE_AI_API_KEY} \ + OLLAMA_API_BASE_URL=${OLLAMA_API_BASE_URL} \ + OPENAI_LIKE_API_KEY=${OPENAI_LIKE_API_KEY} \ + OPENAI_LIKE_BASE_URL=${OPENAI_LIKE_BASE_URL} \ + DEEPSEEK_API_KEY=${DEEPSEEK_API_KEY} \ + VITE_LOG_LEVEL=${VITE_LOG_LEVEL} # Pre-configure wrangler to disable metrics RUN mkdir -p /root/.config/.wrangler && \ - echo '{"enabled":false}' > /root/.config/.wrangler/metrics.json + echo '{"enabled":false}' > /root/.config/.wrangler/metrics.json RUN npm run build @@ -53,15 +59,21 @@ ARG ANTHROPIC_API_KEY ARG OPEN_ROUTER_API_KEY ARG GOOGLE_GENERATIVE_AI_API_KEY ARG OLLAMA_API_BASE_URL +ARG OPENAI_LIKE_API_KEY +ARG OPENAI_LIKE_BASE_URL +ARG DEEPSEEK_API_KEY ARG VITE_LOG_LEVEL=debug ENV GROQ_API_KEY=${GROQ_API_KEY} \ - OPENAI_API_KEY=${OPENAI_API_KEY} \ - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY} \ - OPEN_ROUTER_API_KEY=${OPEN_ROUTER_API_KEY} \ - GOOGLE_GENERATIVE_AI_API_KEY=${GOOGLE_GENERATIVE_AI_API_KEY} \ - OLLAMA_API_BASE_URL=${OLLAMA_API_BASE_URL} \ - VITE_LOG_LEVEL=${VITE_LOG_LEVEL} + OPENAI_API_KEY=${OPENAI_API_KEY} \ + ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY} \ + OPEN_ROUTER_API_KEY=${OPEN_ROUTER_API_KEY} \ + GOOGLE_GENERATIVE_AI_API_KEY=${GOOGLE_GENERATIVE_AI_API_KEY} \ + OLLAMA_API_BASE_URL=${OLLAMA_API_BASE_URL} \ + OPENAI_LIKE_API_KEY=${OPENAI_LIKE_API_KEY} \ + OPENAI_LIKE_BASE_URL=${OPENAI_LIKE_BASE_URL} \ + DEEPSEEK_API_KEY=${DEEPSEEK_API_KEY} \ + VITE_LOG_LEVEL=${VITE_LOG_LEVEL} RUN mkdir -p ${WORKDIR}/run CMD pnpm run dev --host diff --git a/docker-compose.yaml b/docker-compose.yaml index c391dd732..944a12bf3 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -6,8 +6,8 @@ services: dockerfile: Dockerfile target: bolt-ai-production ports: - - "5173:5173" - env_file: ".env.local" + - '5173:5173' + env_file: '.env.local' environment: - NODE_ENV=production - COMPOSE_PROFILES=production @@ -19,13 +19,16 @@ services: - OPEN_ROUTER_API_KEY=${OPEN_ROUTER_API_KEY} - GOOGLE_GENERATIVE_AI_API_KEY=${GOOGLE_GENERATIVE_AI_API_KEY} - OLLAMA_API_BASE_URL=${OLLAMA_API_BASE_URL} + - OPENAI_LIKE_API_KEY=${OPENAI_LIKE_API_KEY} + - OPENAI_LIKE_BASE_URL=${OPENAI_LIKE_BASE_URL} + - DEEPSEEK_API_KEY=${DEEPSEEK_API_KEY} - VITE_LOG_LEVEL=${VITE_LOG_LEVEL:-debug} - RUNNING_IN_DOCKER=true extra_hosts: - - "host.docker.internal:host-gateway" + - 'host.docker.internal:host-gateway' command: pnpm run dockerstart profiles: - - production # This service only runs in the production profile + - production # This service only runs in the production profile bolt-ai-dev: image: bolt-ai:development @@ -37,7 +40,7 @@ services: - VITE_HMR_HOST=localhost - VITE_HMR_PORT=5173 - CHOKIDAR_USEPOLLING=true - - WATCHPACK_POLLING=true + - WATCHPACK_POLLING=true - PORT=5173 - GROQ_API_KEY=${GROQ_API_KEY} - OPENAI_API_KEY=${OPENAI_API_KEY} @@ -45,10 +48,13 @@ services: - OPEN_ROUTER_API_KEY=${OPEN_ROUTER_API_KEY} - GOOGLE_GENERATIVE_AI_API_KEY=${GOOGLE_GENERATIVE_AI_API_KEY} - OLLAMA_API_BASE_URL=${OLLAMA_API_BASE_URL} + - OPENAI_LIKE_API_KEY=${OPENAI_LIKE_API_KEY} + - OPENAI_LIKE_BASE_URL=${OPENAI_LIKE_BASE_URL} + - DEEPSEEK_API_KEY=${DEEPSEEK_API_KEY} - VITE_LOG_LEVEL=${VITE_LOG_LEVEL:-debug} - RUNNING_IN_DOCKER=true extra_hosts: - - "host.docker.internal:host-gateway" + - 'host.docker.internal:host-gateway' volumes: - type: bind source: . @@ -56,6 +62,6 @@ services: consistency: cached - /app/node_modules ports: - - "5173:5173" # Same port, no conflict as only one runs at a time + - '5173:5173' # Same port, no conflict as only one runs at a time command: pnpm run dev --host 0.0.0.0 - profiles: ["development", "default"] # Make development the default profile + profiles: ['development', 'default'] # Make development the default profile