-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
51 lines (40 loc) · 1.42 KB
/
dockerfile
File metadata and controls
51 lines (40 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Use NVIDIA’s CUDA 12.8 runtime on Ubuntu 22.04
FROM nvidia/cuda:12.8.0-cudnn-runtime-ubuntu22.04
# Prevent prompts during package installs
ENV DEBIAN_FRONTEND=noninteractive
# Install common build tools (add or remove packages as you like)
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
cmake \
git \
python3 \
python3-pip && \
rm -rf /var/lib/apt/lists/*
# Ensure CUDA binaries & libraries are on the PATH
ENV PATH=/usr/local/cuda/bin:${PATH}
ENV LD_LIBRARY_PATH=/usr/local/cuda/lib64:${LD_LIBRARY_PATH}
WORKDIR /app
RUN git clone https://github.com/Project-Babble/ProjectBabble.git
WORKDIR /app/ProjectBabble/BabbleApp
RUN git reset --hard 1de5670 # Locks the project pulled to this specific version
RUN git revert --no-commit 50d03ce # Use old model
RUN apt-get update && \
apt-get install -y python3-tk \
xvfb \
libglib2.0-0 \
libportaudio2
RUN apt-get update && \
apt-get install -y vim
RUN --mount=type=cache,target=/root/.cache/pip \
pip install -r requirements.txt
RUN pip install desktop_notifier
VOLUME ["/root/.cache/pip"]
## CUDA SUPPORT
RUN pip uninstall -y onnxruntime onnxruntime-gpu
RUN pip install onnxruntime-gpu
# COPY babble_settings.json .
# COPY . /app
# CMD ["xvfb-run", "-a", "-s", "-screen 0 1280x1024x24", "python3", "/app/ProjectBabble/BabbleApp/babbleapp.py"]
CMD ["python3", "babbleapp.py"]
# CMD ["bash"]