18 lines
626 B
Docker
18 lines
626 B
Docker
# Mojo examples (source code reference)
|
|
# Note: Mojo SDK requires Modular license which isn't freely available in Docker
|
|
# We provide Python equivalents that demonstrate the same patterns
|
|
FROM python:3.13-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# Install HTTP client
|
|
RUN pip install --no-cache-dir httpx==0.28.1
|
|
|
|
# Copy source files
|
|
COPY hermes_nonstreaming.mojo .
|
|
COPY qwen_nonstreaming.mojo .
|
|
COPY uncloseai.py .
|
|
COPY README.md .
|
|
|
|
# Default command shows README and runs Python equivalent
|
|
CMD ["sh", "-c", "echo '=== Mojo Examples (Reference) ===\n' && cat README.md && echo '\n\n=== Running Python Equivalent ===\n' && python uncloseai.py"]
|