zigbee2mqtt/docker/Dockerfile.amd64

21 lines
473 B
Docker
Raw Normal View History

FROM alpine:3.8
2018-05-09 13:15:59 -07:00
# 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
2018-06-15 15:10:08 -07:00
# Write .hash.json
ARG COMMIT
RUN echo "{\"hash\": \"$COMMIT\"}" > .hash.json
2018-05-09 13:15:59 -07:00
# Install dependencies
2018-11-29 13:02:37 -07:00
RUN apk add --update --no-cache make gcc g++ python linux-headers udev nodejs npm git && \
2018-05-09 13:15:59 -07:00
npm install --unsafe-perm && \
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"]