Aidahaouas commited on
Commit
6ce16c4
·
verified ·
1 Parent(s): 77eb9de

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -9
Dockerfile CHANGED
@@ -1,14 +1,13 @@
1
- # Mettre à jour les paquets et installer les dépendances ODBC
 
2
  RUN apt-get update && apt-get install -y \
3
  unixodbc \
4
  unixodbc-dev \
5
- odbcinst \
6
  libodbc1 \
7
- libpq-dev \
8
- curl
 
 
9
 
10
- # Installer les drivers Microsoft ODBC
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 mssql-tools
 
1
+ FROM mcr.microsoft.com/mssql-tools:latest
2
+
3
  RUN apt-get update && apt-get install -y \
4
  unixodbc \
5
  unixodbc-dev \
 
6
  libodbc1 \
7
+ python3-pip
8
+
9
+ COPY requirements.txt .
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
 
12
+ COPY . .
13
+ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.enableCORS=false"]