mirror of
https://github.com/mtan93/homeassistant-addons.git
synced 2026-05-29 14:21:44 +01:00
Change base image to 'hassioaddons/debian-base'
This commit is contained in:
@@ -1,7 +1,17 @@
|
||||
FROM matijse/eufy-ha-mqtt-bridge
|
||||
FROM hassioaddons/debian-base
|
||||
|
||||
RUN npm install json2yaml
|
||||
ENV LANG C.UTF-8
|
||||
|
||||
COPY docker-entrypoint.sh /
|
||||
RUN chmod a+x /docker-entrypoint.sh
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||
# install node and build tools (needed by node-pre-gy)
|
||||
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt install -y nodejs g++ make python
|
||||
|
||||
# ass source and unpack
|
||||
RUN mkdir /src /app && curl -sL https://github.com/matijse/eufy-ha-mqtt-bridge/tarball/main | tar xvfz - -C /app --strip-components=1
|
||||
|
||||
# install all (and json2yaml for Cofiguration parsing)
|
||||
WORKDIR /app
|
||||
RUN npm install && npm install -g json2yaml
|
||||
|
||||
COPY run.sh /
|
||||
RUN chmod a+x /run.sh
|
||||
CMD [ "/run.sh" ]
|
||||
|
||||
Reference in New Issue
Block a user