File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
frameworks/CSharp/appmpower Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ FROM mcr.microsoft.com/dotnet/aspnet:9.0.0 AS runtime
1313RUN apt-get update
1414# The following installs standard versions unixodbc and pgsqlodbc
1515# unixodbc still needs to be installed even if compiled locally
16- RUN apt-get install -y unixodbc wget curl
16+ RUN apt-get install -y unixodbc-dev unixodbc wget curl
1717RUN apt-get update
1818
1919WORKDIR /odbc
@@ -45,6 +45,8 @@ WORKDIR /app
4545COPY --from=build /app/out ./
4646
4747RUN cp /usr/lib/libm* /app
48+ # RUN cp /usr/lib/aarch64-linux-gnu/libodbc* /app
49+ RUN cp /usr/lib/x86_64-linux-gnu/libodbc* /app
4850
4951EXPOSE 8080
5052
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ RUN dotnet publish -c Release -o out /p:Database=postgresql
1010FROM mcr.microsoft.com/dotnet/aspnet:9.0.0 AS runtime
1111
1212RUN apt-get update
13- RUN apt-get install -y unixodbc odbc-postgresql
13+ RUN apt-get install -y unixodbc-dev unixodbc odbc-postgresql
1414# unixodbc still needs to be installed even if compiled locally
1515
1616ENV PATH=/usr/local/unixODBC/bin:$PATH
@@ -27,6 +27,10 @@ ENV ASPNETCORE_URLS http://+:8080
2727WORKDIR /app
2828COPY --from=build /app/out ./
2929
30+ # RUN cp /usr/lib/aarch64-linux-gnu/libodbc* /app
31+ RUN cp /usr/lib/x86_64-linux-gnu/libodbc* /app
32+
33+
3034EXPOSE 8080
3135
3236ENTRYPOINT ["./appMpower" ]
Original file line number Diff line number Diff line change 3636 </PropertyGroup >
3737
3838 <ItemGroup >
39- <PackageReference Include =" System.Data.Odbc" Version =" 8 .0.0" />
39+ <PackageReference Include =" System.Data.Odbc" Version =" 9 .0.0" />
4040 </ItemGroup >
4141
4242</Project >
You can’t perform that action at this time.
0 commit comments