-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (23 loc) · 855 Bytes
/
Dockerfile
File metadata and controls
32 lines (23 loc) · 855 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:12.6.3-cudnn-runtime-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
ENV APP_WORKDIR=/home/depth_estimation
# Set the working directory inside the container
WORKDIR $APP_WORKDIR
RUN apt update -y && apt upgrade -y
RUN apt-get install libopenblas-dev liblapack-dev -y
# needed for cv2
RUN apt-get install ffmpeg libsm6 libxext6 -y
# Install Python dependencies
RUN apt install python3-pip -y
RUN python3 -m pip install --upgrade setuptools pip wheel
COPY requirements.txt ./requirements.txt
COPY requirements_app.txt ./requirements_app.txt
RUN pip install -r requirements.txt
RUN pip install -r requirements_app.txt
EXPOSE 80
# CMD ["/bin/bash"]
CMD ["/bin/bash", "run_service.sh"]