mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-16 18:39:09 -07:00
16 lines
310 B
Docker
16 lines
310 B
Docker
|
FROM arm32v7/node
|
||
|
|
||
|
# Copy files
|
||
|
ADD . /app
|
||
|
RUN cp /app/data/configuration.yaml /app
|
||
|
|
||
|
# Create startup script.
|
||
|
RUN echo '#!/bin/bash\n\
|
||
|
cp -n /app/configuration.yaml /app/data/configuration.yaml\n\
|
||
|
npm start\n'\
|
||
|
>> /app/start.sh
|
||
|
RUN chmod +x /app/start.sh
|
||
|
|
||
|
WORKDIR /app
|
||
|
RUN npm install
|
||
|
ENTRYPOINT ["./start.sh"]
|