-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #2
- Loading branch information
Showing
2 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# for arm64/aarch64 | ||
# see: https://github.com/ultralytics/ultralytics/blob/main/docker/Dockerfile-arm64 | ||
|
||
FROM arm64v8/python:3-bookworm | ||
ARG BIN_VERSION=<unknown> | ||
|
||
RUN apt-get -y update \ | ||
&& apt-get install --no-install-recommends -y \ | ||
curl git zip libpython3-dev python3-opencv libgl1 libglib2.0-0 gnupg g++ libusb-1.0-0 \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir /app | ||
COPY ./*.py ./requirements.txt /app/ | ||
RUN pip install --no-cache-dir -r /app/requirements.txt | ||
|
||
WORKDIR /app | ||
RUN curl -f -L -O https://github.com/ultralytics/assets/releases/download/v8.2.0/yolov8n.pt | ||
ENV DM_DOCKER_ALSO_BIND="*:2856" | ||
HEALTHCHECK CMD curl -s --max-time 2 --fail http://localhost:2856/health || exit 1 | ||
ENTRYPOINT ["python3", "main.py"] | ||
|
||
LABEL license="GPL-3.0" | ||
LABEL maintainer="Chris Dzombak <https://www.dzombak.com>" | ||
LABEL org.opencontainers.image.authors="Chris Dzombak <https://www.dzombak.com>" | ||
LABEL org.opencontainers.image.url="https://github.com/cdzombak/driveway-monitor" | ||
LABEL org.opencontainers.image.documentation="https://github.com/cdzombak/driveway-monitor/blob/main/README.md" | ||
LABEL org.opencontainers.image.source="https://github.com/cdzombak/driveway-monitor.git" | ||
LABEL org.opencontainers.image.version="${BIN_VERSION}" | ||
LABEL org.opencontainers.image.licenses="GPL-3.0" | ||
LABEL org.opencontainers.image.title="driveway-monitor" | ||
LABEL org.opencontainers.image.description="Receive customizable, AI-powered notifications when someone arrives in your driveway." |