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

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

相关推荐
金銀銅鐵17 小时前
[Python] 从《千字文》中随机挑选汉字
后端·python
cup111 天前
[技术复盘] Windows Python 打包实战:Nuitka 环境踩坑总结与 CI 自动化构建全指南
python·ai·环境变量·ci·nuitka·skill
aqi001 天前
15天学会AI应用开发(七)有了大模型为什么还要引入RAG
人工智能·python·大模型·ai编程·ai应用
金銀銅鐵1 天前
用 Python 实现 Take-Away 游戏
python·游戏
copyer_xyf1 天前
Agent 流程编排
后端·python·agent
copyer_xyf1 天前
Agent RAG
后端·python·agent
copyer_xyf1 天前
【RAG】向量数据库:milvus
后端·python·agent
copyer_xyf1 天前
Agent 记忆管理
后端·python·agent
星云穿梭2 天前
用Python写一个带图形界面的学生管理系统——完整教程
python