hassio-plejd/plejd/Dockerfile

39 lines
609 B
Text
Raw Permalink Normal View History

FROM alpine:3.23.2
2023-08-17 15:37:06 +02:00
ENV LANG=C.UTF-8
RUN set -eux; \
2023-08-17 15:37:06 +02:00
apk add --no-cache --virtual .build-dependencies \
g++ \
gcc \
libc-dev \
linux-headers \
make \
python3 \
bluez \
eudev-dev \
zlib-dev \
\
&& apk add --no-cache \
git \
nodejs \
npm \
dbus-dev \
glib-dev
2023-08-17 15:37:06 +02:00
COPY ./package.json /plejd/
2023-08-17 15:37:06 +02:00
WORKDIR /plejd
RUN npm install \
--no-audit \
--no-update-notifier \
--unsafe-perm
COPY ./*.js /plejd/
COPY ./config.json /plejd/
2023-08-17 15:37:06 +02:00
COPY ./entrypoint.sh /plejd/
COPY ./options.json.template /plejd/
RUN chmod a+x /plejd/entrypoint.sh
2023-08-17 15:37:06 +02:00
ENTRYPOINT ["/bin/sh", "/plejd/entrypoint.sh"]