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] ```dockerfile [dotnet]
FROM mcr.microsoft.com/dotnet/runtime-deps:8.0-alpine FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime
WORKDIR /app WORKDIR /app
COPY ./publish .
COPY publish/ .
RUN chmod +x EMMessageHubServer
EXPOSE 5000
EXPOSE 14040 EXPOSE 14040
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ENTRYPOINT ["./EMMessageHubServer"] RUN echo 'Asia/Shanghai' > /etc/timezone
ENTRYPOINT ["dotnet", "App.dll"]
``` ```
::: :::