zigbee2mqtt/docker/Dockerfile.arm32v6

22 lines
686 B
Docker
Raw Normal View History

2019-09-17 10:59:58 -07:00
FROM arm32v6/alpine:3.9
2018-05-09 13:15:59 -07:00
# Setup cross-build
ENV QEMU_EXECVE 1
COPY docker/qemu-arm-static /usr/bin
WORKDIR /app
2018-06-16 13:53:33 -07:00
# Write .hash.json
ARG COMMIT
2018-06-17 07:38:11 -07:00
RUN [ "qemu-arm-static", "/bin/sh", "-c", "echo {\\\"hash\\\": \\\"$COMMIT\\\"} > .hash.json" ]
2018-06-16 13:53:33 -07:00
2018-05-09 13:15:59 -07:00
# Copy files & install dependencies
ADD . /app
RUN [ "qemu-arm-static", "/bin/sh", "-c", \
"cp /app/data/configuration.yaml /app && \
cp /app/docker/run.sh /app && chmod +x /app/run.sh && \
2018-11-29 13:02:37 -07:00
apk add --update --no-cache make gcc g++ python linux-headers udev nodejs npm git && \
2019-09-17 10:20:52 -07:00
npm install --unsafe-perm --production && \
2018-06-15 15:10:08 -07:00
apk del make gcc g++ python linux-headers udev git"]
2018-05-09 13:15:59 -07:00
# Entrypoint
ENTRYPOINT ["./run.sh"]