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

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

相关推荐
L-李俊漩10 分钟前
荆华密算 面试题(大模型开发)
python
小陈工24 分钟前
Python Web开发入门(十):数据库迁移与版本管理——让数据库变更可控可回滚
前端·数据库·人工智能·python·sql·云原生·架构
JoshRen33 分钟前
Python中的简单爬虫
爬虫·python·信息可视化
永远的超音速36 分钟前
PyCharm性能调优避坑录大纲
python·pycharm
AnchorYYC1 小时前
TEI Inference Toolkit - 工业级Embedding/NLI /Reranking服务调用最佳实践
人工智能·python·持续部署·#大模型应用
小驴程序源1 小时前
【OpenClaw 完整安装实施教程(Windows + Ollama 本地模型)】
gpt·langchain·aigc·embedding·ai编程·llama·gpu算力
Ulyanov1 小时前
Pymunk 2D物理游戏开发教程系列 第二篇:约束与关节篇 -《摇摆特技车》
python·架构·系统仿真·雷达电子战·仿真引擎
Trouvaille ~1 小时前
零基础入门 LangChain 与 LangGraph(三):环境搭建、包安装与第一个 LangChain 程序
python·ai·chatgpt·langchain·大模型·openai·langgraph
喜欢喝果茶.1 小时前
Qt翻译接口 -逐条翻译(免费级)
开发语言·python
南 阳1 小时前
Python从入门到精通day60
开发语言·python