Update DOCKERFILE with new file names
This commit is contained in:
parent
5ac7d9893d
commit
4e7ec6a1da
1 changed files with 77 additions and 75 deletions
152
plejd/Dockerfile
152
plejd/Dockerfile
|
|
@ -1,75 +1,77 @@
|
|||
ARG BUILD_FROM=hassioaddons/base:8.0.6
|
||||
FROM $BUILD_FROM
|
||||
|
||||
ENV LANG C.UTF-8
|
||||
|
||||
# Set shell
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
|
||||
# Copy data for add-on
|
||||
COPY ./config.json /plejd/
|
||||
COPY ./Configuration.js /plejd/
|
||||
COPY ./Logger.js /plejd/
|
||||
COPY ./main.js /plejd/
|
||||
COPY ./MqttClient.js /plejd/
|
||||
COPY ./package.json /plejd/
|
||||
COPY ./PlejdApi.js /plejd/
|
||||
COPY ./PlejdService.js /plejd/
|
||||
COPY ./Scene.js /plejd/
|
||||
COPY ./SceneManager.js /plejd/
|
||||
COPY ./SceneStep.js /plejd/
|
||||
|
||||
ARG BUILD_ARCH
|
||||
|
||||
# Install Node
|
||||
RUN apk add --no-cache jq
|
||||
RUN \
|
||||
apk add --no-cache --virtual .build-dependencies \
|
||||
g++ \
|
||||
gcc \
|
||||
libc-dev \
|
||||
linux-headers \
|
||||
make \
|
||||
python3 \
|
||||
bluez \
|
||||
eudev-dev \
|
||||
\
|
||||
&& apk add --no-cache \
|
||||
git \
|
||||
nodejs \
|
||||
npm \
|
||||
dbus-dev \
|
||||
glib-dev \
|
||||
\
|
||||
&& npm config set unsafe-perm true
|
||||
|
||||
WORKDIR /plejd
|
||||
RUN npm install \
|
||||
--no-audit \
|
||||
--no-update-notifier \
|
||||
--unsafe-perm
|
||||
|
||||
# Copy root filesystem
|
||||
COPY rootfs /
|
||||
|
||||
# Build arguments
|
||||
ARG BUILD_DATE
|
||||
ARG BUILD_REF
|
||||
ARG BUILD_VERSION
|
||||
|
||||
# Labels
|
||||
LABEL \
|
||||
io.hass.name="Plejd" \
|
||||
io.hass.description="Adds support for the Swedish home automation devices from Plejd." \
|
||||
io.hass.arch="${BUILD_ARCH}" \
|
||||
io.hass.type="addon" \
|
||||
io.hass.version=${BUILD_VERSION} \
|
||||
maintainer="Marcus Westin <marcus@sekurbit.se>" \
|
||||
org.label-schema.description="Adds support for the Swedish home automation devices from Plejd." \
|
||||
org.label-schema.build-date=${BUILD_DATE} \
|
||||
org.label-schema.name="Plejd" \
|
||||
org.label-schema.schema-version="1.0" \
|
||||
org.label-schema.usage="https://github.com/icanos/hassio-plejd/tree/master/README.md" \
|
||||
org.label-schema.vcs-ref=${BUILD_REF} \
|
||||
org.label-schema.vcs-url="https://github.com/icanos/hassio-plejd"
|
||||
|
||||
ARG BUILD_FROM=hassioaddons/base:8.0.6
|
||||
FROM $BUILD_FROM
|
||||
|
||||
ENV LANG C.UTF-8
|
||||
|
||||
# Set shell
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
|
||||
# Copy data for add-on
|
||||
COPY ./config.json /plejd/
|
||||
COPY ./Configuration.js /plejd/
|
||||
COPY ./DeviceRegistry.js /plejd/
|
||||
COPY ./Logger.js /plejd/
|
||||
COPY ./main.js /plejd/
|
||||
COPY ./MqttClient.js /plejd/
|
||||
COPY ./package.json /plejd/
|
||||
COPY ./PlejdAddon.js /plejd/
|
||||
COPY ./PlejdApi.js /plejd/
|
||||
COPY ./PlejdBLE.js /plejd/
|
||||
COPY ./Scene.js /plejd/
|
||||
COPY ./SceneManager.js /plejd/
|
||||
COPY ./SceneStep.js /plejd/
|
||||
|
||||
ARG BUILD_ARCH
|
||||
|
||||
# Install Node
|
||||
RUN apk add --no-cache jq
|
||||
RUN \
|
||||
apk add --no-cache --virtual .build-dependencies \
|
||||
g++ \
|
||||
gcc \
|
||||
libc-dev \
|
||||
linux-headers \
|
||||
make \
|
||||
python3 \
|
||||
bluez \
|
||||
eudev-dev \
|
||||
\
|
||||
&& apk add --no-cache \
|
||||
git \
|
||||
nodejs \
|
||||
npm \
|
||||
dbus-dev \
|
||||
glib-dev \
|
||||
\
|
||||
&& npm config set unsafe-perm true
|
||||
|
||||
WORKDIR /plejd
|
||||
RUN npm install \
|
||||
--no-audit \
|
||||
--no-update-notifier \
|
||||
--unsafe-perm
|
||||
|
||||
# Copy root filesystem
|
||||
COPY rootfs /
|
||||
|
||||
# Build arguments
|
||||
ARG BUILD_DATE
|
||||
ARG BUILD_REF
|
||||
ARG BUILD_VERSION
|
||||
|
||||
# Labels
|
||||
LABEL \
|
||||
io.hass.name="Plejd" \
|
||||
io.hass.description="Adds support for the Swedish home automation devices from Plejd." \
|
||||
io.hass.arch="${BUILD_ARCH}" \
|
||||
io.hass.type="addon" \
|
||||
io.hass.version=${BUILD_VERSION} \
|
||||
maintainer="Marcus Westin <marcus@sekurbit.se>" \
|
||||
org.label-schema.description="Adds support for the Swedish home automation devices from Plejd." \
|
||||
org.label-schema.build-date=${BUILD_DATE} \
|
||||
org.label-schema.name="Plejd" \
|
||||
org.label-schema.schema-version="1.0" \
|
||||
org.label-schema.usage="https://github.com/icanos/hassio-plejd/tree/master/README.md" \
|
||||
org.label-schema.vcs-ref=${BUILD_REF} \
|
||||
org.label-schema.vcs-url="https://github.com/icanos/hassio-plejd"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue