11
This commit is contained in:
parent
3dcdbdf521
commit
862629d45d
@ -43,7 +43,7 @@ COPY ["Plugins/Drivers/DriverSimTcpClient/DriverSimTcpClient.csproj", "Plugins/D
|
|||||||
|
|
||||||
RUN ls -A
|
RUN ls -A
|
||||||
RUN dotnet restore "/src/Plugins/Drivers/DriverModbusMaster/DriverModbusMaster.csproj"
|
RUN dotnet restore "/src/Plugins/Drivers/DriverModbusMaster/DriverModbusMaster.csproj"
|
||||||
RUN dotnet build "/src/Plugins/Drivers/DriverModbusMaster/DriverModbusMaster.csproj" -c Release -o /app/build/drivers/net6.0
|
RUN dotnet build "/src/Plugins/Drivers/DriverModbusMaster/DriverModbusMaster.csproj" -c Release -o /app/drivers/net6.0
|
||||||
#½áÊø²âÊÔ
|
#½áÊø²âÊÔ
|
||||||
|
|
||||||
|
|
||||||
@ -56,14 +56,13 @@ RUN dotnet build "IoTGateway.csproj" -c Release -o /app/build
|
|||||||
FROM build AS publish
|
FROM build AS publish
|
||||||
RUN dotnet publish "IoTGateway.csproj" -c Release -o /app/publish
|
RUN dotnet publish "IoTGateway.csproj" -c Release -o /app/publish
|
||||||
|
|
||||||
COPY /app/build/drivers /app/
|
|
||||||
|
|
||||||
|
|
||||||
FROM base AS final
|
FROM base AS final
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=publish /app/publish .
|
COPY --from=publish /app/publish .
|
||||||
|
|
||||||
RUN ls -l
|
RUN ls /app/drivers/net6.0 -l
|
||||||
ENV TZ=Asia/Shanghai
|
ENV TZ=Asia/Shanghai
|
||||||
ENTRYPOINT ["dotnet", "IoTGateway.dll"]
|
ENTRYPOINT ["dotnet", "IoTGateway.dll"]
|
||||||
#ENTRYPOINT ["ls","-l"]
|
#ENTRYPOINT ["ls","-l"]
|
||||||
|
Loading…
Reference in New Issue
Block a user