Update Dockerfile

This commit is contained in:
dd 2022-03-19 22:40:41 +08:00 committed by GitHub
parent 4cbd443b80
commit e3ed081a59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,10 +4,8 @@ FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /app
EXPOSE 518
EXPOSE 1888
RUN apt-get update
RUN apt-get install libgdiplus -y
RUN apt-get install nano -y
EXPOSE 62541
EXPOSE 503
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
@ -35,4 +33,4 @@ WORKDIR /app
COPY --from=publish /app/publish .
ENV TZ=Asia/Shanghai
ENTRYPOINT ["dotnet", "IoTGateway.dll"]
ENTRYPOINT ["dotnet", "IoTGateway.dll"]