如何构建一个提供LLM运行环境的镜像
如果想在本地搭建LLM的运行环境,使用镜像是一个很好的选择
本文提供基于python 3.10版本,使用poetry管理依赖,快速搭建LLM运行环境的镜像的脚本
Dockerfile文件内容
# syntax=docker/dockerfile:1
# use build args in the docker build command with --build-arg="BUILDARG=true"
# Override at your own risk - non-root configurations are untested
ARG UID=0
ARG GID