Update Dockerfile
Browse files- Dockerfile +7 -12
Dockerfile
CHANGED
@@ -1,25 +1,20 @@
|
|
1 |
# Use the Hugging Face Spaces base image
|
2 |
FROM huggingface/platform:latest
|
3 |
-
|
4 |
-
# Install system dependencies for PyAudio
|
5 |
RUN apt-get update && apt-get install -y \
|
6 |
portaudio19-dev \
|
7 |
-
|
8 |
-
|
9 |
-
|
|
|
10 |
&& apt-get clean
|
11 |
-
|
12 |
# Set the working directory inside the container
|
13 |
WORKDIR /app
|
14 |
-
|
15 |
# Copy all project files into the container
|
16 |
COPY . /app
|
17 |
-
|
18 |
# Install Python dependencies
|
19 |
-
RUN pip install --no-cache-dir
|
20 |
-
|
21 |
# Expose the Streamlit default port
|
22 |
EXPOSE 8501
|
23 |
-
|
24 |
# Run the Streamlit app
|
25 |
-
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
|
|
1 |
# Use the Hugging Face Spaces base image
|
2 |
FROM huggingface/platform:latest
|
3 |
+
# Install system dependencies for PyAudio and other build tools
|
|
|
4 |
RUN apt-get update && apt-get install -y \
|
5 |
portaudio19-dev \
|
6 |
+
libasound-dev \
|
7 |
+
libportaudio2 \
|
8 |
+
libportaudiocpp0 \
|
9 |
+
gcc \
|
10 |
&& apt-get clean
|
|
|
11 |
# Set the working directory inside the container
|
12 |
WORKDIR /app
|
|
|
13 |
# Copy all project files into the container
|
14 |
COPY . /app
|
|
|
15 |
# Install Python dependencies
|
16 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
17 |
# Expose the Streamlit default port
|
18 |
EXPOSE 8501
|
|
|
19 |
# Run the Streamlit app
|
20 |
+
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|