Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
romanett committed Mar 1, 2024
1 parent a7e2c87 commit 4bc1d67
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion GDSwithREST.Domain/Services/GdsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public async Task StartServer(CancellationToken stoppingToken)
ConfigSectionName = "Opc.Ua.GlobalDiscoveryServer"
};
// load the application configuration.
await _applicationInstance.LoadApplicationConfiguration("GdsConfig\\Opc.Ua.GlobalDiscoveryServer.Config.xml", false);
await _applicationInstance.LoadApplicationConfiguration("/OPC Foundation/GDS/config/Opc.Ua.GlobalDiscoveryServer.Config.xml", false);
// check the application certificate.
await _applicationInstance.CheckApplicationInstanceCertificate(false, 0);

Expand Down
10 changes: 6 additions & 4 deletions GDSwithREST/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging.

FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app
COPY ["GDSwithREST/GdsConfig", "/OPC Foundation/GDS/config"]
COPY ["GDSwithREST/HTTPSCert", "/OPC Foundation/HTTPSCert"]
EXPOSE 8080
EXPOSE 8081
EXPOSE 58810
RUN apt-get update
RUN apt-get --yes install curl
USER root
RUN apt-get update && apt-get install -y curl --fix-missing
# Switch back to the desired user (e.g., jovyan)
USER $NB_UID
HEALTHCHECK --interval=5s --timeout=10s --retries=3 CMD curl --silent --fail https://localhost:8081/hc -k || exit 1

FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
COPY ["GDSwithREST/GDSwithREST.csproj", "GDSwithREST/"]
RUN dotnet restore "GDSwithREST/GDSwithREST.csproj"
Expand Down

0 comments on commit 4bc1d67

Please sign in to comment.