-
Notifications
You must be signed in to change notification settings - Fork 64
Expand file tree
/
Copy pathDockerfile
More file actions
59 lines (50 loc) · 1.37 KB
/
Dockerfile
File metadata and controls
59 lines (50 loc) · 1.37 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
55
56
57
58
59
# syntax=docker/dockerfile:1
FROM ubuntu:jammy as base
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
ENV PATH /opt/conda/bin:$PATH
RUN apt-get update --fix-missing && \
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata && \
apt-get install -y --no-install-recommends \
wget \
bzip2 \
ca-certificates \
curl \
git \
ffmpeg \
libsm6 \
libxext6 \
build-essential \
pkg-config \
libglvnd-dev \
libgl1-mesa-dev \
libegl1-mesa-dev \
libgles2-mesa-dev \
libglvnd0 \
libgl1 \
libglx0 \
libegl1 \
libgles2 \
freeglut3-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Add NVIDIA drivers to glvnd
RUN mkdir -p /usr/share/glvnd/egl_vendor.d/ && \
echo "{\n\
\"file_format_version\" : \"1.0.0\",\n\
\"ICD\": {\n\
\"library_path\": \"libEGL_nvidia.so.0\"\n\
}\n\
}" > /usr/share/glvnd/egl_vendor.d/10_nvidia.json
# Install Miniconda
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-py310_23.5.2-0-Linux-x86_64.sh -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh
WORKDIR /app
# Install conda dependencies
COPY environment.yml .
RUN conda env update -n base -f environment.yml
# Install deepdrr and pip dependencies
COPY . .
RUN pip install .[dev,cuda11x]
# CMD python tests/test_core.py
CMD python -m pytest -v