Spaces:
Starting
on
T4
Starting
on
T4
github-actions[bot]
commited on
Commit
·
6a42a11
1
Parent(s):
604c477
Sync with https://github.com/mozilla-ai/document-to-podcast
Browse files- Dockerfile +12 -0
Dockerfile
CHANGED
@@ -1,5 +1,14 @@
|
|
1 |
FROM nvidia/cuda:12.2.2-cudnn8-devel-ubuntu22.04
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
RUN apt-get update && apt-get install --no-install-recommends -y \
|
4 |
build-essential \
|
5 |
python3.10 \
|
@@ -8,8 +17,11 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
|
|
8 |
git \
|
9 |
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
10 |
|
|
|
11 |
RUN pip3 install https://github.com/abetlen/llama-cpp-python/releases/download/v0.3.4-cu122/llama_cpp_python-0.3.4-cp310-cp310-linux_x86_64.whl
|
12 |
RUN pip3 install document-to-podcast
|
13 |
|
|
|
|
|
14 |
EXPOSE 8501
|
15 |
ENTRYPOINT ["python3", "app.py"]
|
|
|
1 |
FROM nvidia/cuda:12.2.2-cudnn8-devel-ubuntu22.04
|
2 |
|
3 |
+
RUN useradd -m -u 1000 user
|
4 |
+
|
5 |
+
USER user
|
6 |
+
|
7 |
+
ENV HOME=/home/user \
|
8 |
+
PATH=/home/user/.local/bin:$PATH
|
9 |
+
|
10 |
+
WORKDIR $HOME/app
|
11 |
+
|
12 |
RUN apt-get update && apt-get install --no-install-recommends -y \
|
13 |
build-essential \
|
14 |
python3.10 \
|
|
|
17 |
git \
|
18 |
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
19 |
|
20 |
+
|
21 |
RUN pip3 install https://github.com/abetlen/llama-cpp-python/releases/download/v0.3.4-cu122/llama_cpp_python-0.3.4-cp310-cp310-linux_x86_64.whl
|
22 |
RUN pip3 install document-to-podcast
|
23 |
|
24 |
+
COPY --chown=user . $HOME/app
|
25 |
+
|
26 |
EXPOSE 8501
|
27 |
ENTRYPOINT ["python3", "app.py"]
|