FROM python:3.10 WORKDIR /app COPY . /app/ RUN pip install --upgrade pip RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt RUN apt-get update RUN apt-get install -y tdsodbc unixodbc-dev RUN apt install unixodbc -y RUN apt-get clean -y # DEPENDECES FOR DOWNLOAD ODBC DRIVER RUN apt-get install apt-transport-https RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - RUN curl https://packages.microsoft.com/config/debian/10/prod.list > /etc/apt/sources.list.d/mssql-release.list RUN apt-get update # INSTALL ODBC DRIVER RUN ACCEPT_EULA=Y apt-get install msodbcsql17 --assume-yes # CONFIGURE ENV FOR /bin/bash TO USE MSODBCSQL17 RUN echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile RUN echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc ENTRYPOINT [ "streamlit" , "run"] CMD ["/app/HOME.py", "--server.address", "0.0.0.0", "--server.port", "7860", "tuananguyen-TCDK.hf.space"]