dotnet core 开发下使用docker 的几个坑

dotnet core 开发下使用docker 的几个坑

1.window和linux下的GDI库

需要安装libgdiplus.so

RUN apt-get install libfontconfig1 -y
RUN apt-get install libgdiplus -y && ln -s libgdiplus.so gdiplus.dll

2.路径大小写

RUN echo "set completion-ignore-case on" >> ~/.inputrc

3.设置asp.net core 端口

ENTRYPOINT ["dotnet", "N***.***.dll","--urls=http://*:8080"]

4.更新软件源

deb http://mirrors.aliyun.com/debian stretch main contrib non-free  
deb-src http://mirrors.aliyun.com/debian stretch main contrib non-free  
deb http://mirrors.aliyun.com/debian stretch-updates main contrib non-free  
deb-src http://mirrors.aliyun.com/debian stretch-updates main contrib non-free  
deb http://mirrors.aliyun.com/debian-security stretch/updates main contrib non-free 
deb-src http://mirrors.aliyun.com/debian-security stretch/updates main contrib non-free 
deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib  
deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib

将内容存到根目录下命名为:sources.list

ADD sources.list /etc/apt/

 

 

 

留言