diff --git a/Dockerfile b/Dockerfile index 19cdd56..2ac9ede 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Use the official ASP.NET Core SDK image -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build # Set the working directory in the container WORKDIR /app @@ -9,6 +9,8 @@ RUN dotnet restore dvcsa.csproj COPY . . +RUN dotnet dev-certs https --trust + # Build the application ENTRYPOINT ["dotnet"] -CMD ["watch", "run", "-v", "--project" , "dvcsa.csproj"] +CMD ["watch", "--project" , "dvcsa.csproj", "--verbose", "run", "--","--project" , "dvcsa.csproj"] diff --git a/docker-compose.override.yml b/docker-compose.override.yml index dd22ccc..300ef9b 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -5,7 +5,7 @@ services: build: . ports: - "8999:9000" - command: ["dotnet", "watch","run", -v, "--project" , "dvcsa.csproj"] + command: ["dotnet", "watch", "--project" , "dvcsa.csproj", "--verbose", "run", "--", "--project" , "dvcsa.csproj"] volumes: - .:/app - /app/obj/ # <- directory won't be mounted diff --git a/docker-compose.yaml b/docker-compose.yml similarity index 100% rename from docker-compose.yaml rename to docker-compose.yml diff --git a/dvcsa.csproj b/dvcsa.csproj index c5c13ba..57e0868 100644 --- a/dvcsa.csproj +++ b/dvcsa.csproj @@ -1,15 +1,15 @@ - net8.0 + net7.0 enable enable - - - + + +