Update DOCKERFILE with new file names

This commit is contained in:
Victor Hagelbäck 2021-02-01 21:31:02 +01:00
parent 5ac7d9893d
commit 4e7ec6a1da

View file

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