feat:更新docker部署文档
This commit is contained in:
@@ -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"]
|
||||||
```
|
```
|
||||||
:::
|
:::
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user