mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-12 06:38:53 +00:00
Added tzdata and --virtual devtools (#2053)
* Update Dockerfile.arm32v6 using --virtual for devtools, added tzdata * Update Dockerfile.arm64v8 * Update Dockerfile.amd64 * Lint
This commit is contained in:
committed by
Koen Kanters
parent
c8eb503ae7
commit
99ebc46981
@@ -12,9 +12,10 @@ 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 && \
|
||||
RUN apk add --update --no-cache nodejs npm tzdata && \
|
||||
apk add --update --no-cache --virtual .buildtools make gcc g++ python linux-headers udev git && \
|
||||
npm install --unsafe-perm --production && \
|
||||
apk del make gcc g++ python linux-headers udev git
|
||||
apk del .buildtools
|
||||
|
||||
# Entrypoint
|
||||
ENTRYPOINT ["./run.sh"]
|
||||
|
||||
@@ -14,9 +14,10 @@ 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 && \
|
||||
apk add --update --no-cache make gcc g++ python linux-headers udev nodejs npm git && \
|
||||
apk add --update --no-cache nodejs npm tzdata && \
|
||||
apk add --update --no-cache --virtual .buildtools make gcc g++ python linux-headers udev git && \
|
||||
npm install --unsafe-perm --production && \
|
||||
apk del make gcc g++ python linux-headers udev git"]
|
||||
apk del .buildtools"]
|
||||
|
||||
# Entrypoint
|
||||
ENTRYPOINT ["./run.sh"]
|
||||
ENTRYPOINT ["./run.sh"]
|
||||
|
||||
@@ -14,9 +14,10 @@ ADD . /app
|
||||
RUN [ "qemu-aarch64-static", "/bin/sh", "-c", \
|
||||
"cp /app/data/configuration.yaml /app && \
|
||||
cp /app/docker/run.sh /app && chmod +x /app/run.sh && \
|
||||
apk add --update --no-cache make gcc g++ python linux-headers udev nodejs npm git && \
|
||||
apk add --update --no-cache nodejs npm tzdata && \
|
||||
apk add --update --no-cache --virtual .buildtools make gcc g++ python linux-headers udev git && \
|
||||
npm install --unsafe-perm --production && \
|
||||
apk del make gcc g++ python linux-headers udev git"]
|
||||
apk del .buildtools"]
|
||||
|
||||
# Entrypoint
|
||||
ENTRYPOINT ["./run.sh"]
|
||||
ENTRYPOINT ["./run.sh"]
|
||||
|
||||
Reference in New Issue
Block a user