整理文档
This commit is contained in:
14
docker/issue/issue.md
Normal file
14
docker/issue/issue.md
Normal file
@ -0,0 +1,14 @@
|
||||
<h1>Docker 相关的问题讨论</h1>
|
||||
|
||||
## 解决 Docker 容器不支持中文的问题,中文乱码问题
|
||||
|
||||
#### 编写 Dockerfile
|
||||
|
||||
```Dockerfile
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:7.0
|
||||
WORKDIR /app #容器内的工作目录
|
||||
EXPOSE 80 #容器监听的端口
|
||||
ADD /Fonts/* /usr/share/fonts/ #中文字体
|
||||
ENV LANG=C.UTF-8 #容器默认编码
|
||||
ENTRYPOINT ["dotnet","RapidApp.Api.dll"]
|
||||
```
|
Reference in New Issue
Block a user