Spaces:
Build error
Build error
Create Dockerfile
Browse files- Dockerfile +23 -0
Dockerfile
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.10
|
2 |
+
|
3 |
+
# Install system dependencies
|
4 |
+
RUN apt-get update && apt-get install -y \
|
5 |
+
portaudio19-dev \
|
6 |
+
python3-pyaudio \
|
7 |
+
&& rm -rf /var/lib/apt/lists/*
|
8 |
+
|
9 |
+
# Set working directory
|
10 |
+
WORKDIR /home/user/app
|
11 |
+
|
12 |
+
# Copy files to container
|
13 |
+
COPY requirements.txt /tmp/requirements.txt
|
14 |
+
COPY app.py /home/user/app/app.py
|
15 |
+
|
16 |
+
# Install Python dependencies
|
17 |
+
RUN pip install --no-cache-dir -r /tmp/requirements.txt
|
18 |
+
|
19 |
+
# Expose Streamlit default port
|
20 |
+
EXPOSE 7860
|
21 |
+
|
22 |
+
# Run Streamlit app
|
23 |
+
CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.enableCORS", "false"]
|