Spaces:
Sleeping
Sleeping
Delete Dockerfile
Browse files- Dockerfile +0 -33
Dockerfile
DELETED
|
@@ -1,33 +0,0 @@
|
|
| 1 |
-
# Use Python as the base image
|
| 2 |
-
FROM python:3.10
|
| 3 |
-
|
| 4 |
-
# Install system dependencies
|
| 5 |
-
RUN apt-get update && apt-get install -y \
|
| 6 |
-
curl \
|
| 7 |
-
unixodbc \
|
| 8 |
-
unixodbc-dev \
|
| 9 |
-
apt-transport-https \
|
| 10 |
-
gnupg \
|
| 11 |
-
libodbc1 \
|
| 12 |
-
odbcinst
|
| 13 |
-
|
| 14 |
-
# Add Microsoft repository and install ODBC Driver 17
|
| 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 msodbcsql17
|
| 18 |
-
|
| 19 |
-
# Verify installation
|
| 20 |
-
RUN ls -l /usr/lib/x86_64-linux-gnu/ | grep odbc
|
| 21 |
-
|
| 22 |
-
# Set working directory
|
| 23 |
-
WORKDIR /home/user/app
|
| 24 |
-
|
| 25 |
-
# Install Python dependencies
|
| 26 |
-
COPY requirements.txt .
|
| 27 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 28 |
-
|
| 29 |
-
# Copy application code
|
| 30 |
-
COPY . .
|
| 31 |
-
|
| 32 |
-
# Run the Streamlit app
|
| 33 |
-
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|