Normalize Dockerfile line ending

This commit is contained in:
swevictor 2023-08-17 15:37:06 +02:00
parent 61427224a0
commit 16f817d195

View file

@ -1,68 +1,68 @@
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 ./*.js /plejd/ COPY ./*.js /plejd/
COPY ./config.json /plejd/ COPY ./config.json /plejd/
COPY ./package.json /plejd/ COPY ./package.json /plejd/
ARG BUILD_ARCH ARG BUILD_ARCH
# Install Node # Install Node
RUN apk add --no-cache jq RUN apk add --no-cache jq
RUN \ RUN \
apk add --no-cache --virtual .build-dependencies \ apk add --no-cache --virtual .build-dependencies \
g++ \ g++ \
gcc \ gcc \
libc-dev \ libc-dev \
linux-headers \ linux-headers \
make \ make \
python3 \ python3 \
bluez \ bluez \
eudev-dev \ eudev-dev \
zlib-dev \ zlib-dev \
\ \
&& apk add --no-cache \ && apk add --no-cache \
git \ git \
nodejs \ nodejs \
npm \ npm \
dbus-dev \ dbus-dev \
glib-dev \ glib-dev \
\ \
&& npm config set unsafe-perm true && npm config set unsafe-perm true
WORKDIR /plejd WORKDIR /plejd
RUN npm install \ RUN npm install \
--no-audit \ --no-audit \
--no-update-notifier \ --no-update-notifier \
--unsafe-perm --unsafe-perm
# Copy root filesystem # Copy root filesystem
COPY rootfs / COPY rootfs /
# Build arguments # Build arguments
ARG BUILD_DATE ARG BUILD_DATE
ARG BUILD_REF ARG BUILD_REF
ARG BUILD_VERSION ARG BUILD_VERSION
# Labels # Labels
LABEL \ LABEL \
io.hass.name="Plejd" \ io.hass.name="Plejd" \
io.hass.description="Adds support for the Swedish home automation devices from Plejd." \ io.hass.description="Adds support for the Swedish home automation devices from Plejd." \
io.hass.arch="${BUILD_ARCH}" \ io.hass.arch="${BUILD_ARCH}" \
io.hass.type="addon" \ io.hass.type="addon" \
io.hass.version=${BUILD_VERSION} \ io.hass.version=${BUILD_VERSION} \
maintainer="Marcus Westin <marcus@sekurbit.se>" \ maintainer="Marcus Westin <marcus@sekurbit.se>" \
org.label-schema.description="Adds support for the Swedish home automation devices from Plejd." \ org.label-schema.description="Adds support for the Swedish home automation devices from Plejd." \
org.label-schema.build-date=${BUILD_DATE} \ org.label-schema.build-date=${BUILD_DATE} \
org.label-schema.name="Plejd" \ org.label-schema.name="Plejd" \
org.label-schema.schema-version="1.0" \ org.label-schema.schema-version="1.0" \
org.label-schema.usage="https://github.com/icanos/hassio-plejd/tree/master/README.md" \ 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-ref=${BUILD_REF} \
org.label-schema.vcs-url="https://github.com/icanos/hassio-plejd" org.label-schema.vcs-url="https://github.com/icanos/hassio-plejd"