Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -1,6 +1,8 @@
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
# Install system dependencies
|
|
|
|
|
|
|
| 4 |
RUN apt-get update && apt-get install -y \
|
| 5 |
ffmpeg \
|
| 6 |
git \
|
|
@@ -15,12 +17,11 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 15 |
# Copy the application code
|
| 16 |
COPY app.py .
|
| 17 |
|
| 18 |
-
# Streamlit config
|
| 19 |
ENV STREAMLIT_SERVER_PORT=7860
|
| 20 |
ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
|
| 21 |
ENV STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false
|
| 22 |
|
| 23 |
EXPOSE 7860
|
| 24 |
|
| 25 |
-
# Start Streamlit
|
| 26 |
CMD ["streamlit", "run", "app.py"]
|
|
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
# Install system dependencies
|
| 4 |
+
# git is REQUIRED for installing whisperx from github
|
| 5 |
+
# ffmpeg is REQUIRED for audio processing
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
ffmpeg \
|
| 8 |
git \
|
|
|
|
| 17 |
# Copy the application code
|
| 18 |
COPY app.py .
|
| 19 |
|
| 20 |
+
# Streamlit config
|
| 21 |
ENV STREAMLIT_SERVER_PORT=7860
|
| 22 |
ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
|
| 23 |
ENV STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false
|
| 24 |
|
| 25 |
EXPOSE 7860
|
| 26 |
|
|
|
|
| 27 |
CMD ["streamlit", "run", "app.py"]
|