-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile_unidepth
More file actions
32 lines (22 loc) · 857 Bytes
/
Dockerfile_unidepth
File metadata and controls
32 lines (22 loc) · 857 Bytes
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
FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04
# Set the timezone
ENV TZ=Europe/Berlin
ARG DEBIAN_FRONTEND noninteractive
# Update the system timezone
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Set the working directory inside the container
ENV APP_WORKDIR=/home/depth_estimation
WORKDIR $APP_WORKDIR
RUN apt update -y && apt upgrade -y
RUN apt-get install libopenblas-dev liblapack-dev -y
# install pip
RUN apt install python3-pip -y
RUN python3 -m pip install --upgrade setuptools pip wheel
# needed for cv2
RUN apt-get install ffmpeg libsm6 libxext6 -y
COPY ./requirements.txt $APP_WORKDIR/requirements.txt
# Install UniDepth and dependencies
RUN pip3 install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu118
EXPOSE 80
CMD ["/bin/bash"]
# CMD ["/bin/bash", "run_service.sh"]