Created
July 15, 2019 10:26
-
-
Save cyan198/0e38b9845a5bd011c1377fcad11095a1 to your computer and use it in GitHub Desktop.
Dockerfile for Aspnetcore with odbc and SAP Hana driver
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 AS runtime | |
RUN apt-get update \ | |
&& apt-get install -y --no-install-recommends \ | |
unixodbc unixodbc-dev \ | |
&& rm -rf /var/lib/apt/lists/* | |
COPY ./libodbcHDB.so ./app/hana/ | |
COPY ./odbc.ini /etc/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[saphana] | |
DRIVER=/app/hana/libodbcHDB.so | |
SERVERNODE=[hostname/ip]:[port] | |
DESCRIPTION=[description text] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment