feat:更新docker部署文档

This commit is contained in:
2026-04-29 11:11:20 +08:00
parent 306f8df886
commit e8081aa92a

View File

@@ -344,18 +344,13 @@ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8082"]
```
```dockerfile [dotnet]
FROM mcr.microsoft.com/dotnet/runtime-deps:8.0-alpine
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime
WORKDIR /app
COPY publish/ .
RUN chmod +x EMMessageHubServer
EXPOSE 5000
COPY ./publish .
EXPOSE 14040
ENTRYPOINT ["./EMMessageHubServer"]
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' > /etc/timezone
ENTRYPOINT ["dotnet", "App.dll"]
```
:::