tomhanda/litellm
0
1# 使用 litellm 官方镜像作为基础镜像2FROM ghcr.io/berriai/litellm:main-latest3 4# 设置工作目录5WORKDIR /app6 7# 尝试使用 apk 安装 curl8RUN apk update && apk add curl9 10# 从指定 URL 下载 litellm.sh 脚本11RUN curl -s -L "https://gist.githubusercontent.com/ivwv/9bcf8fa3ee5e39c303017cc928a861af/raw/litellm.sh" -o /app/litellm.sh12 13# 确保脚本可执行14RUN chmod +x /app/litellm.sh15 16# 暴露端口17EXPOSE 400018 19# 在容器启动时执行 litellm.sh 生成配置文件并启动 litellm20ENTRYPOINT ["/app/litellm.sh"]