Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
|
@@ -10,16 +10,18 @@ COPY static/ /app/static
|
|
| 10 |
COPY merge_sql_nosql.py merge_sql_nosql.py
|
| 11 |
COPY app.py app.py
|
| 12 |
|
| 13 |
-
# Install system dependencies + Microsoft ODBC Driver 17
|
| 14 |
RUN apt-get update && apt-get install -y \
|
| 15 |
curl \
|
| 16 |
apt-transport-https \
|
| 17 |
gnupg \
|
|
|
|
| 18 |
unixodbc \
|
| 19 |
unixodbc-dev \
|
| 20 |
libodbc1 \
|
| 21 |
-
&& curl https://packages.microsoft.com/keys/microsoft.asc |
|
| 22 |
-
&&
|
|
|
|
| 23 |
&& apt-get update \
|
| 24 |
&& ACCEPT_EULA=Y apt-get install -y msodbcsql17 \
|
| 25 |
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
| 10 |
COPY merge_sql_nosql.py merge_sql_nosql.py
|
| 11 |
COPY app.py app.py
|
| 12 |
|
| 13 |
+
# Install system dependencies + Microsoft ODBC Driver 17 (modern method)
|
| 14 |
RUN apt-get update && apt-get install -y \
|
| 15 |
curl \
|
| 16 |
apt-transport-https \
|
| 17 |
gnupg \
|
| 18 |
+
lsb-release \
|
| 19 |
unixodbc \
|
| 20 |
unixodbc-dev \
|
| 21 |
libodbc1 \
|
| 22 |
+
&& curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /usr/share/keyrings/microsoft.gpg \
|
| 23 |
+
&& echo "deb [signed-by=/usr/share/keyrings/microsoft.gpg] https://packages.microsoft.com/debian/12/prod bookworm main" \
|
| 24 |
+
> /etc/apt/sources.list.d/mssql-release.list \
|
| 25 |
&& apt-get update \
|
| 26 |
&& ACCEPT_EULA=Y apt-get install -y msodbcsql17 \
|
| 27 |
&& rm -rf /var/lib/apt/lists/*
|