diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite index 099ee48..7bf9a4e 100644 Binary files a/.vs/slnx.sqlite and b/.vs/slnx.sqlite differ diff --git a/Sources/Dockerfile b/Sources/Dockerfile index 269b30c..6759727 100644 --- a/Sources/Dockerfile +++ b/Sources/Dockerfile @@ -23,8 +23,9 @@ RUN dotnet build "Api.csproj" -c Release -o /app/build FROM build AS publish RUN dotnet publish "Api.csproj" -c Release -o /app/publish /p:UseAppHost=false - +RUN chmod 755 ../* FROM base AS final WORKDIR /app +RUN chmod 755 * COPY --from=publish /app/publish . ENTRYPOINT ["dotnet", "Api.dll"] \ No newline at end of file diff --git a/Sources/Entity_Framework/BDDContext.cs b/Sources/Entity_Framework/BDDContext.cs index 611e666..c156c60 100644 --- a/Sources/Entity_Framework/BDDContext.cs +++ b/Sources/Entity_Framework/BDDContext.cs @@ -155,9 +155,7 @@ namespace Entity_Framework { if (!optionsBuilder.IsConfigured) { - //optionsBuilder.UseSqlite($"Data Source=../Entity_Framework/BDD.db"); - var dbPath = Path.Combine(Current.LocalFolder.Path, "BDD.db"); - optionsBuilder.UseSqlite($"Data Source= "+dbPath); + optionsBuilder.UseSqlite($"Data Source=../Entity_Framework/BDD.db"); // optionsBuilder.UseSqlite($"Data Source=C:\\Users\\Jolys Enzo\\home\\BUT\\Projet\\Sae4.01\\Projet\\R-Dash_APP\\Entity_Framework\\BDD.db"); //optionsBuilder.UseSqlite($"Data Source=C:\\Users\\zinn1\\Source\\Repos\\Serveur-Api2\\Sources\\Entity_Framework\\BDD.db"); }