Spaces:
Build error
Build error
Delete Dockerfile
Browse files- Dockerfile +0 -38
Dockerfile
DELETED
|
@@ -1,38 +0,0 @@
|
|
| 1 |
-
# Use the official Python image from Docker Hub
|
| 2 |
-
FROM python:3.10-slim
|
| 3 |
-
|
| 4 |
-
# Install system dependencies
|
| 5 |
-
RUN apt-get update && apt-get install -y \
|
| 6 |
-
libsm6 \
|
| 7 |
-
libxext6 \
|
| 8 |
-
libxrender-dev \
|
| 9 |
-
git \
|
| 10 |
-
ffmpeg \
|
| 11 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
-
|
| 13 |
-
# Set environment variables for protobuf (to avoid version conflicts)
|
| 14 |
-
ENV PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
|
| 15 |
-
|
| 16 |
-
# Set the working directory in the container
|
| 17 |
-
WORKDIR /app
|
| 18 |
-
|
| 19 |
-
# Upgrade pip to the latest version
|
| 20 |
-
RUN pip install --upgrade pip
|
| 21 |
-
|
| 22 |
-
# Install protobuf explicitly to avoid conflicts
|
| 23 |
-
RUN pip install protobuf==3.19.4
|
| 24 |
-
|
| 25 |
-
# Copy your requirements.txt into the container
|
| 26 |
-
COPY requirements.txt .
|
| 27 |
-
|
| 28 |
-
# Install Python dependencies from requirements.txt (will handle protobuf automatically)
|
| 29 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 30 |
-
|
| 31 |
-
# Install streamlit and other needed packages
|
| 32 |
-
RUN pip install streamlit
|
| 33 |
-
|
| 34 |
-
# Copy the rest of the application code into the container
|
| 35 |
-
COPY . .
|
| 36 |
-
|
| 37 |
-
# Set the default command to run your Streamlit app
|
| 38 |
-
CMD ["streamlit", "run", "app.py"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|