Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +20 -6
Dockerfile
CHANGED
|
@@ -1,15 +1,29 @@
|
|
| 1 |
-
FROM
|
| 2 |
|
| 3 |
-
|
| 4 |
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
COPY app.py /app.py
|
| 8 |
COPY entrypoint.sh /entrypoint.sh
|
| 9 |
-
|
| 10 |
RUN chmod +x /entrypoint.sh
|
| 11 |
|
| 12 |
EXPOSE 7860
|
|
|
|
| 13 |
|
| 14 |
-
ENTRYPOINT []
|
| 15 |
-
CMD ["bash", "/entrypoint.sh"]
|
|
|
|
| 1 |
+
FROM python:3.11-slim
|
| 2 |
|
| 3 |
+
WORKDIR /
|
| 4 |
|
| 5 |
+
# Install dependencies
|
| 6 |
+
RUN apt-get update && apt-get install -y \
|
| 7 |
+
curl \
|
| 8 |
+
ffmpeg \
|
| 9 |
+
git \
|
| 10 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
+
# Install your llama-cpp-python wheel! 🔥
|
| 13 |
+
RUN pip install https://github.com/Ary5272/llama-cpp-python/releases/download/v0.1.1/llama_cpp_python-0.3.9-cp311-cp311-linux_x86_64.whl
|
| 14 |
+
|
| 15 |
+
# Install other packages
|
| 16 |
+
RUN pip install \
|
| 17 |
+
gradio \
|
| 18 |
+
faster-whisper \
|
| 19 |
+
huggingface_hub
|
| 20 |
+
|
| 21 |
+
# Copy app
|
| 22 |
COPY app.py /app.py
|
| 23 |
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
| 24 |
RUN chmod +x /entrypoint.sh
|
| 25 |
|
| 26 |
EXPOSE 7860
|
| 27 |
+
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
| 28 |
|
| 29 |
+
ENTRYPOINT ["/entrypoint.sh"]
|
|
|