Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -1
Dockerfile
CHANGED
|
@@ -7,13 +7,19 @@ RUN apt-get update && apt-get install -y \
|
|
| 7 |
unixodbc \
|
| 8 |
unixodbc-dev \
|
| 9 |
apt-transport-https \
|
| 10 |
-
gnupg
|
|
|
|
|
|
|
| 11 |
|
| 12 |
# Add Microsoft repository and install ODBC Driver 18
|
| 13 |
RUN curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | tee /etc/apt/trusted.gpg.d/microsoft.asc
|
| 14 |
RUN echo "deb [arch=amd64] https://packages.microsoft.com/debian/11/prod bookworm main" > /etc/apt/sources.list.d/mssql-release.list
|
| 15 |
RUN apt-get update && ACCEPT_EULA=Y apt-get install -y msodbcsql18
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
# Set working directory
|
| 18 |
WORKDIR /home/user/app
|
| 19 |
|
|
|
|
| 7 |
unixodbc \
|
| 8 |
unixodbc-dev \
|
| 9 |
apt-transport-https \
|
| 10 |
+
gnupg \
|
| 11 |
+
libodbc1 \
|
| 12 |
+
odbcinst
|
| 13 |
|
| 14 |
# Add Microsoft repository and install ODBC Driver 18
|
| 15 |
RUN curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | tee /etc/apt/trusted.gpg.d/microsoft.asc
|
| 16 |
RUN echo "deb [arch=amd64] https://packages.microsoft.com/debian/11/prod bookworm main" > /etc/apt/sources.list.d/mssql-release.list
|
| 17 |
RUN apt-get update && ACCEPT_EULA=Y apt-get install -y msodbcsql18
|
| 18 |
|
| 19 |
+
# Verify ODBC installation
|
| 20 |
+
RUN ls -l /usr/lib/x86_64-linux-gnu/ | grep odbc
|
| 21 |
+
RUN odbcinst -q -d
|
| 22 |
+
|
| 23 |
# Set working directory
|
| 24 |
WORKDIR /home/user/app
|
| 25 |
|