Initial commit: Add Ollama Proxy project files

This commit is contained in:
yshtcn
2025-01-23 00:13:12 +08:00
commit 49b834ff93
11 changed files with 662 additions and 0 deletions

23
Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
FROM python:3.9-slim
WORKDIR /app
# 设置 Python 环境
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1
# 添加新的环境变量默认值
ENV WAKE_INTERVAL=10
# 安装依赖
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# 复制应用代码
COPY ollama_proxy.py .
# 暴露端口
EXPOSE 11434
# 启动应用
CMD ["python", "ollama_proxy.py"]