tyxsspa/AnyText 阿里生成文字

Dockerfile

################

使用 NVIDIA CUDA 11.8 开发环境作为基础镜像

FROM nvcr.io/nvidia/cuda:12.1.1-cudnn8-runtime-ubuntu22.04

设置非交互式安装模式以避免某些命令在构建过程中暂停

ENV DEBIAN_FRONTEND=noninteractive

更新软件包列表并安装基本工具

RUN apt-get update && apt-get install -y wget git curl vim bzip2 && apt-get install ffmpeg libsm6 libxext6 -y && apt-get install libgl1 -y

下载 Anaconda 安装脚本

RUN wget https://repo.anaconda.com/archive/Anaconda3-2023.03-Linux-x86_64.sh

运行 Anaconda 安装脚本

RUN /bin/bash Anaconda3-2023.03-Linux-x86_64.sh -b -p /opt/conda

RUN rm Anaconda3-2023.03-Linux-x86_64.sh

将 conda 添加到 PATH,这样我们就可以直接使用它

ENV PATH /opt/conda/bin:$PATH

设置工作目录(可根据需要更改)

WORKDIR /app

(可选)创建一个新的 Anaconda 环境

RUN conda install -c anaconda git

RUN git clone https://github.com/tyxsspa/AnyText.git && cd AnyText && conda env create -f environment.yaml

CMD sleep 111111

######################################

相关推荐
哈里谢顿11 小时前
LangGraph 框架完全指南:构建生产级 AI 工作流
langchain·llm
哈里谢顿11 小时前
LangChain 框架完全指南:从入门到精通
langchain
San3015 小时前
手写 Mini Cursor:基于 Node.js 与 LangChain 的开发实战
langchain·node.js·agent
helloweilei15 小时前
python 抽象基类
python
用户83562907805116 小时前
Python 实现 PPT 转 HTML
后端·python
UIUV16 小时前
Splitter学习笔记(含RAG相关流程与代码实践)
后端·langchain·llm
zone773921 小时前
004:RAG 入门-LangChain读取PDF
后端·python·面试
zone773921 小时前
005:RAG 入门-LangChain读取表格数据
后端·python·agent
树獭非懒1 天前
AI大模型小白手册|Embedding 与向量数据库
后端·python·llm
唐叔在学习2 天前
就算没有服务器,我照样能够同步数据
后端·python·程序员