Skip to content

Commit

Permalink
update: based on new addon example
Browse files Browse the repository at this point in the history
  • Loading branch information
Minims committed Jan 20, 2025
1 parent 014d8d3 commit 2ce0015
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.github/* @minims
1 change: 1 addition & 0 deletions MyFox2MQTT-dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-dockerfile
ARG BUILD_FROM
FROM $BUILD_FROM
FROM $BUILD_FROM$:dev
ENV LANG C.UTF-8

# Install required packages
Expand Down
6 changes: 2 additions & 4 deletions MyFox2MQTT/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-dockerfile
ARG VERSION=2024.9.2
ARG BUILD_FROM
FROM $BUILD_FROM
FROM $BUILD_FROM:{$VERSION}
ENV LANG C.UTF-8

# MyFox2MQTT version
ARG VERSION=2024.9.2

# Install required packages
RUN apk add --no-cache py3-pip
RUN pip3 install --no-cache-dir python-json2yaml==0.1.1
Expand Down
2 changes: 1 addition & 1 deletion SomfyProtect2MQTT-dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-dockerfile
ARG BUILD_FROM
FROM ${BUILD_FROM}
FROM ${BUILD_FROM}:dev
ENV LANG C.UTF-8

# Copy root filesystem
Expand Down
6 changes: 2 additions & 4 deletions SomfyProtect2MQTT/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-dockerfile
ARG VERSION=2024.9.0
ARG BUILD_FROM
FROM $BUILD_FROM
FROM $BUILD_FROM$:${VERSION}
ENV LANG C.UTF-8

# SomfyProtect2MQTT version
ARG VERSION=2024.9.0

# Install required packages
RUN apk add --no-cache py3-pip py3-opencv ffmpeg

Check failure on line 8 in SomfyProtect2MQTT/Dockerfile

View workflow job for this annotation

GitHub Actions / workflows / Hadolint

DL3018 warning: Pin versions in apk add. Instead of `apk add <package>` use `apk add <package>=<version>`
RUN pip3 install --no-cache-dir python-json2yaml==0.1.1

Check failure on line 9 in SomfyProtect2MQTT/Dockerfile

View workflow job for this annotation

GitHub Actions / workflows / Hadolint

DL3059 info: Multiple consecutive `RUN` instructions. Consider consolidation.
Expand Down

0 comments on commit 2ce0015

Please sign in to comment.