-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·34 lines (26 loc) · 1.11 KB
/
Dockerfile
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
# Use the official royerlab/ultrack image as the base
FROM royerlab/ultrack:0.6.1-cuda11.8
# Define an environment variable for the data directory
ENV DATA_DIR="/app/data"
# Install any utilities needed (e.g., git) to fetch a specific commit if needed
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
tini \
xvfb \
&& rm -rf /var/lib/apt/lists/*
# Copy everything from the Docker build context (the same directory as this Dockerfile)
# into /app inside the container
COPY . /app
# Set the working directory
WORKDIR /app
# Installing additional Python dependencies
RUN pip install --no-cache --root-user-action ignore -r requirements.txt --no-deps
RUN pip install --no-cache --root-user-action ignore ./ultrack
RUN pip install --no-cache --root-user-action ignore ./dexp-dl --no-deps
# tini is needed to run xvfb-run
# xvfb-run is needed to run GUI applications in headless mode (e.g. napari-reader)
ENTRYPOINT ["tini", "--", "xvfb-run"]
# Execute all submissions
CMD ["/usr/bin/bash", "run_all.sh"]
# If you want to run a shell instead, uncomment the following line
# CMD ["/usr/bin/bash"]