Create Dockerfile
Browse files- Dockerfile +22 -0
Dockerfile
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
&& apt-get clean
|
8 |
+
|
9 |
+
# Set the working directory
|
10 |
+
WORKDIR /modules
|
11 |
+
|
12 |
+
# Copy your project files into the container
|
13 |
+
COPY . /modules
|
14 |
+
|
15 |
+
# Install Python dependencies
|
16 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
17 |
+
|
18 |
+
# Expose Streamlit port (if you're using Streamlit)
|
19 |
+
EXPOSE 8501
|
20 |
+
|
21 |
+
# Run your main script (replace with your actual entry-point script)
|
22 |
+
CMD ["streamlit", "run", "app.py"]
|