From 20ca84e4f73cd3d55b54928aa5b08d7a76a49e7f Mon Sep 17 00:00:00 2001 From: Alessio Dal Santo Date: Tue, 17 Feb 2026 12:34:44 +0100 Subject: [PATCH] [Fix] Risolto problema SQLite in container Docker Linux MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Cambiato immagine base da Alpine a Debian per migliore compatibilità SQLite - Aggiunto SQLitePCLRaw.bundle_e_sqlite3 per librerie native cross-platform - Installato sqlite3 e libsqlite3-dev in Debian - Risolve definitivamente: 'Error loading shared library libe_sqlite3.so' --- DataConnection/DataConnection.csproj | 1 + Dockerfile | 13 +++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) 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 && \