mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-16 10:28:33 -07:00
21 lines
473 B
Docker
21 lines
473 B
Docker
FROM alpine:3.9
|
|
|
|
# Copy files
|
|
ADD . /app
|
|
RUN cp /app/data/configuration.yaml /app
|
|
RUN cp /app/docker/run.sh /app
|
|
RUN chmod +x /app/run.sh
|
|
WORKDIR /app
|
|
|
|
# Write .hash.json
|
|
ARG COMMIT
|
|
RUN echo "{\"hash\": \"$COMMIT\"}" > .hash.json
|
|
|
|
# Install dependencies
|
|
RUN apk add --update --no-cache make gcc g++ python linux-headers udev nodejs npm git && \
|
|
npm install --unsafe-perm && \
|
|
apk del make gcc g++ python linux-headers udev git
|
|
|
|
# Entrypoint
|
|
ENTRYPOINT ["./run.sh"]
|