-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
54 lines (41 loc) · 1.38 KB
/
dockerfile
File metadata and controls
54 lines (41 loc) · 1.38 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
52
53
54
# 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 \
wget
# 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 apt-get install -y \
bzip2 \
libglib2.0-0 \
libportaudio2 \
vim
# conda
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /tmp/miniconda.sh && \
bash /tmp/miniconda.sh -b -p /opt/conda && \
rm /tmp/miniconda.sh
WORKDIR /app/MLEyeTrack/
ENV PATH="/opt/conda/bin:${PATH}"
RUN /opt/conda/bin/conda init
COPY environment.yml .
RUN conda env create -f environment.yml
SHELL ["conda", "run", "-n", "et", "/bin/bash", "-c"]
# models loaded from host
# ## CUDA SUPPORT
RUN pip uninstall -y onnxruntime onnxruntime-gpu
RUN pip install onnxruntime-gpu
# WORKDIR /app/
# RUN git clone https://github.com/MagicBOTAlex/MLEyeTrack.git
# WORKDIR /app/MLEyeTrack/
COPY ./MLEyeTrack .
COPY ./Settings.json .
# CMD ["bash"]
ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "et", "python3", "MLEyetrack.py"]