forked from Tiny-Walnut-Games/the-seed
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (26 loc) · 1.01 KB
/
Dockerfile
File metadata and controls
35 lines (26 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Use an official Python runtime as a parent image
FROM python:3.12-slim
# Set the working directory in the container
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
# Install any needed packages specified in requirements.txt (if present)
RUN if [ -f scripts/requirements.txt ]; then pip install --no-cache-dir -r scripts/requirements.txt; fi
# Install requests for LLM communication
RUN pip install requests
# Expose ports for web/API services and LLM communication
EXPOSE 8080 9998
# Environment variables for LLM integration
ENV LLM_BRIDGE_MODE=gemma3
ENV LLM_ENDPOINT=http://host.docker.internal:9998
ENV WARBLER_AI_ENABLED=true
# Make scripts executable
RUN chmod +x scripts/*.py
# Default command to run TLDA with Warbler-Gemma3 integration
CMD ["python", "scripts/warbler_gemma3_bridge.py"]
# ---
# Build: docker build -t twg-tlda-ai .
# Run: docker run --rm -p 8080:8080 twg-tlda-ai
#
# For development with shell access:
# docker run -it --rm -p 8080:8080 twg-tlda-ai bash