mirror of
https://github.com/yshtcn/OllamaProxy.git
synced 2026-01-28 17:41:56 +08:00
Initial commit: Add Ollama Proxy project files
This commit is contained in:
23
Dockerfile
Normal file
23
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user