Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -2,12 +2,15 @@ FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04
|
|
| 2 |
|
| 3 |
# Install Python 3.10 and system dependencies
|
| 4 |
RUN apt-get update && \
|
| 5 |
-
apt-get install -y python3.10 python3.10-dev python3-pip libgl1-mesa-glx libglib2.0-0 ffmpeg && \
|
| 6 |
ln -s /usr/bin/python3.10 /usr/bin/python
|
| 7 |
|
| 8 |
# Set working directory
|
| 9 |
WORKDIR /app
|
| 10 |
|
|
|
|
|
|
|
|
|
|
| 11 |
# Copy all app files into container
|
| 12 |
COPY . /app
|
| 13 |
|
|
@@ -17,3 +20,4 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 17 |
|
| 18 |
# Run Streamlit app on container start
|
| 19 |
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|
|
|
|
|
|
| 2 |
|
| 3 |
# Install Python 3.10 and system dependencies
|
| 4 |
RUN apt-get update && \
|
| 5 |
+
apt-get install -y python3.10 python3.10-dev python3-pip git libgl1-mesa-glx libglib2.0-0 ffmpeg && \
|
| 6 |
ln -s /usr/bin/python3.10 /usr/bin/python
|
| 7 |
|
| 8 |
# Set working directory
|
| 9 |
WORKDIR /app
|
| 10 |
|
| 11 |
+
# Clone YOLOv7 repository
|
| 12 |
+
RUN git clone https://github.com/WongKinYiu/yolov7.git
|
| 13 |
+
|
| 14 |
# Copy all app files into container
|
| 15 |
COPY . /app
|
| 16 |
|
|
|
|
| 20 |
|
| 21 |
# Run Streamlit app on container start
|
| 22 |
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|
| 23 |
+
|