forked from ehendrix23/tesla_dashcam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
24 lines (18 loc) · 831 Bytes
/
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
FROM denismakogon/ffmpeg-alpine:4.0-buildstage as build-stage
FROM python:3-alpine
COPY --from=build-stage /tmp/fakeroot/bin /usr/local/bin
COPY --from=build-stage /tmp/fakeroot/share /usr/local/share
COPY --from=build-stage /tmp/fakeroot/include /usr/local/include
COPY --from=build-stage /tmp/fakeroot/lib /usr/local/lib
WORKDIR /usr/src/app/tesla_dashcam
RUN apk add --no-cache --update gcc libc-dev linux-headers \
&& apk add --no-cache --update tzdata ttf-freefont libnotify \
&& mkdir /usr/share/fonts/truetype \
&& ln -s /usr/share/fonts/TTF /usr/share/fonts/truetype/freefont
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" ]