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

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

相关推荐
NiceCloud喜云36 分钟前
Opus 4.8 的 Effort Control 怎么选:Low 到 Max 五档策略
android·java·大数据·前端·c++·python·spring
AI玫瑰助手1 小时前
Python函数:默认参数的定义与注意事项
开发语言·python·信息可视化
weixin_468466851 小时前
全局与局部注意力机制新手实战指南
人工智能·python·深度学习·算法·自然语言处理·transformer·注意力机制
小糖学代码2 小时前
LLM系列:环境搭建:5.Python-dotenv 环境变量管理
人工智能·python·深度学习·神经网络
swipe2 小时前
Neo4j + Graph RAG 医疗知识图谱工程实践:患者教育问答真正需要的是“关系可追溯”
后端·langchain·llm
智慧物业老杨2 小时前
智慧物业合同周期管理系统:从风险预警到智能交接的全流程数智化落地方案
java·人工智能·python
橙橙笔记2 小时前
Python的学习第一部分
python·学习
CC大煊3 小时前
一个Javaer的AI转型笔记(1):入坑LangChain,我的第一个hello world
笔记·langchain
voidmort3 小时前
3. 微调(Fine-tuning)与强化学习(RL)的核心思想
python·深度学习·算法
biter down4 小时前
基于 Pywinauto 的 QQ 音乐 GUI 自动化测试实践
python