Ensure data directory ownership is with mesh user (#4097)

This commit is contained in:
Wolfgang Nagele 2024-06-14 17:45:16 +02:00 committed by GitHub
parent 39c9f92c6e
commit 1a5227c826
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,6 +48,7 @@ USER mesh
WORKDIR /home/mesh
COPY --from=builder /tmp/firmware/release/meshtasticd /home/mesh/
RUN mkdir data
VOLUME /home/mesh/data
CMD [ "sh", "-cx", "./meshtasticd -d /home/mesh/data --hwid=${HWID:-$RANDOM}" ]