diff --git a/DataConnection/DataConnection.csproj b/DataConnection/DataConnection.csproj index 6230e81..20d0a33 100644 --- a/DataConnection/DataConnection.csproj +++ b/DataConnection/DataConnection.csproj @@ -15,6 +15,7 @@ + diff --git a/Dockerfile b/Dockerfile index 478968a..0ec7f35 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,16 +30,17 @@ RUN dotnet publish "Data_Coupler.csproj" -c Release -o /app/publish \ /p:PublishSingleFile=false # Stage 3: Runtime -FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine AS final +FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS final WORKDIR /app -# Installa le dipendenze necessarie per ExcelDataReader, SQLite e altre librerie -RUN apk add --no-cache \ +# Installa le dipendenze necessarie per ExcelDataReader e SQLite +RUN apt-get update && apt-get install -y \ libgdiplus \ - icu-libs \ - sqlite-libs \ + libc6-dev \ + sqlite3 \ + libsqlite3-dev \ curl \ - && rm -rf /var/cache/apk/* + && rm -rf /var/lib/apt/lists/* # Crea la directory per il database con i permessi corretti RUN mkdir -p /var/lib/Data_Coupler && \