Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +25 -12
Dockerfile
CHANGED
@@ -1,21 +1,34 @@
|
|
1 |
-
FROM
|
2 |
|
3 |
-
|
|
|
|
|
4 |
|
|
|
5 |
RUN apt-get update && apt-get install -y \
|
6 |
-
|
7 |
-
curl \
|
8 |
-
software-properties-common \
|
9 |
-
git \
|
10 |
&& rm -rf /var/lib/apt/lists/*
|
11 |
|
12 |
-
|
13 |
-
|
|
|
|
|
|
|
14 |
|
15 |
-
|
|
|
|
|
16 |
|
17 |
-
|
|
|
18 |
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
-
|
|
|
1 |
+
FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04
|
2 |
|
3 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
4 |
+
ENV PYTHONDONTWRITEBYTECODE=1
|
5 |
+
ENV PYTHONUNBUFFERED=1
|
6 |
|
7 |
+
# Install Python and dependencies
|
8 |
RUN apt-get update && apt-get install -y \
|
9 |
+
python3 python3-pip ffmpeg curl git wget \
|
|
|
|
|
|
|
10 |
&& rm -rf /var/lib/apt/lists/*
|
11 |
|
12 |
+
RUN ln -s /usr/bin/python3 /usr/bin/python
|
13 |
+
RUN pip install --upgrade pip
|
14 |
+
|
15 |
+
# Create app directory
|
16 |
+
WORKDIR /app
|
17 |
|
18 |
+
# Copy requirements and install
|
19 |
+
COPY requirements.txt .
|
20 |
+
RUN pip install -r requirements.txt
|
21 |
|
22 |
+
# Copy the app code into the image
|
23 |
+
COPY . .
|
24 |
|
25 |
+
# Ensure the custom interface is in place
|
26 |
+
# Optional as already in src/, but ensures it's updated
|
27 |
+
RUN wget -O src/custome_interface.py https://huggingface.co/Jzuluaga/accent-id-commonaccent_xlsr-en-english/resolve/main/custom_interface.py
|
28 |
+
|
29 |
+
# Pulling LLaMA model (optional pre-pull)
|
30 |
+
RUN curl -fsSL https://ollama.com/install.sh | sh && ollama pull llama3.1
|
31 |
+
|
32 |
+
EXPOSE 8501
|
33 |
|
34 |
+
CMD ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|