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

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

相关推荐
米码收割机12 分钟前
【python】python油田数据分析与可视化(源码+数据集)【独一无二】
开发语言·python·数据分析
花酒锄作田40 分钟前
[python]png转webp的命令行工具
python
aiweker1 小时前
Python处理数据库:MySQL与SQLite详解
数据库·python
Amd7941 小时前
Python 与 PostgreSQL 集成:深入 psycopg2 的应用与实践
python·postgresql·数据分析·开发·最佳实践·psycopg2·数据库集成
查理零世2 小时前
【算法】回溯算法专题③ ——排列型回溯 python
python·算法·深度优先
Ethel L2 小时前
Python - pyautogui库 模拟鼠标和键盘执行GUI任务
python
游王子4 小时前
Python NumPy(6):修改数组形状、翻转数组、修改数组维度
开发语言·python·numpy
枫叶落雨2225 小时前
15JavaWeb——Maven高级篇
linux·python·maven
流形填表5 小时前
用FormLinker实现自动调整数据格式,批量导入微软表单
python·microsoft·flask
databook6 小时前
manim边学边做--局部变换
python·动效