osharp icon indicating copy to clipboard operation
osharp copied to clipboard

部署问题

Open 240011814 opened this issue 5 years ago • 1 comments

Unable to load shared library 'libgdiplus' or one of its dependencies. In order to help diagnose loading problems, consider s etting the LD_DEBUG environment variable: liblibgdiplus: cannot open shared obje ct file: No such file or directory 部署到docker,获取图片验证码报错 能不能出个部署docker教程,这样新手可以少走很多弯路

240011814 avatar May 20 '20 09:05 240011814

FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS final

# 设置语言/区域设置环境变量
ENV LANG zh-Hans

# 使用阿里云的镜像源进行更新
# RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/' /etc/apt/sources.list

# 更新包管理器并安装free命令
#RUN apt-get update && apt-get install -y procps
RUN apt-get update \
    && apt-get install -y procps \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*


Dockerfile中装上procps 应该可以了

shiningrise avatar Mar 06 '25 07:03 shiningrise