-
Notifications
You must be signed in to change notification settings - Fork 80
/
Dockerfile.nvidia
31 lines (24 loc) · 980 Bytes
/
Dockerfile.nvidia
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
FROM jrottenberg/ffmpeg:4.4-nvidia2004 as build-stage
FROM python:3-bullseye
COPY --from=build-stage /usr/local/bin /usr/local/bin
COPY --from=build-stage /usr/local/share /usr/local/share
COPY --from=build-stage /usr/local/include /usr/local/include
COPY --from=build-stage /usr/local/lib /usr/local/lib
COPY --from=build-stage /usr/local/cuda /usr/local/cuda
WORKDIR /usr/src/app/tesla_dashcam
RUN apt-get update -y \
&& apt-get install -y \
fonts-freefont-ttf \
libnotify-bin \
libva2 \
libva-drm2 \
&& apt-get remove --purge --auto-remove -y && rm -rf /var/lib/apt/lists/*
ENV LIBRARY_PATH=/lib:/usr/lib
ENV LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/lib:/usr/local/lib64:/usr/lib:/lib
COPY . /usr/src/app/tesla_dashcam
RUN pip install -r requirements.txt
# Enable Logs to show on run
ENV PYTHONUNBUFFERED=true
# Provide a default timezone
ENV TZ=America/New_York
ENTRYPOINT [ "python3", "tesla_dashcam/tesla_dashcam.py" ]