Update Dockerfile
Browse files- Dockerfile +9 -4
Dockerfile
CHANGED
|
@@ -1,17 +1,22 @@
|
|
|
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
-
# Install system dependencies for
|
| 4 |
RUN apt-get update && \
|
| 5 |
apt-get install -y portaudio19-dev && \
|
| 6 |
apt-get clean
|
| 7 |
|
| 8 |
-
# Install
|
| 9 |
COPY requirements.txt .
|
| 10 |
RUN pip install -r requirements.txt
|
| 11 |
|
| 12 |
-
# Copy the
|
| 13 |
COPY . /app
|
| 14 |
|
| 15 |
WORKDIR /app
|
| 16 |
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Start from an official Python base image
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
+
# Install system dependencies for PortAudio
|
| 5 |
RUN apt-get update && \
|
| 6 |
apt-get install -y portaudio19-dev && \
|
| 7 |
apt-get clean
|
| 8 |
|
| 9 |
+
# Install pip dependencies
|
| 10 |
COPY requirements.txt .
|
| 11 |
RUN pip install -r requirements.txt
|
| 12 |
|
| 13 |
+
# Copy the Streamlit app files into the container
|
| 14 |
COPY . /app
|
| 15 |
|
| 16 |
WORKDIR /app
|
| 17 |
|
| 18 |
+
# Expose port for Streamlit (default is 8501)
|
| 19 |
+
EXPOSE 8501
|
| 20 |
+
|
| 21 |
+
# Set the command to run the app with Streamlit
|
| 22 |
+
CMD ["streamlit", "run", "page.py"]
|