MatteoScript commited on
Commit
d30636b
·
verified ·
1 Parent(s): 6d93526

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -2
Dockerfile CHANGED
@@ -1,12 +1,23 @@
1
  FROM python:3.9
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  WORKDIR /code
4
 
5
  COPY ./requirements.txt /code/requirements.txt
6
 
7
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
- RUN apt-get install -y tdsodbc unixodbc-dev
9
- RUN apt install unixodbc -y
10
 
11
  COPY . .
12
 
 
1
  FROM python:3.9
2
 
3
+ # Installa il driver ODBC per SQL Server
4
+ RUN apt-get update && apt-get install -y \
5
+ curl \
6
+ unixodbc \
7
+ unixodbc-dev \
8
+ libodbc1 \
9
+ odbcinst \
10
+ odbcinst1debian2
11
+ RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
12
+ curl https://packages.microsoft.com/config/debian/10/prod.list > /etc/apt/sources.list.d/mssql-release.list && \
13
+ apt-get update && \
14
+ ACCEPT_EULA=Y apt-get install -y msodbcsql17
15
+
16
  WORKDIR /code
17
 
18
  COPY ./requirements.txt /code/requirements.txt
19
 
20
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
 
21
 
22
  COPY . .
23