From 961262365b77bab42719906df286c58404553f48 Mon Sep 17 00:00:00 2001 From: Guillaume Bouvignies Date: Tue, 29 Aug 2023 17:44:45 +0200 Subject: [PATCH] fix: Add data directory owned by user 1000 (#2692) ### Description Process user used in Dockerfile can now read and write to any volume mounted under the `/data/` directory. ### Drive-by changes N/A ### Related issues Fixes: 2691 ### Backward compatibility Yes ### Testing Manual I've built the image locally and tested that we can mount any kind of docker volume under the `/data/` directory --- rust/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rust/Dockerfile b/rust/Dockerfile index dfd3457cf0..72d0c94d3d 100644 --- a/rust/Dockerfile +++ b/rust/Dockerfile @@ -48,7 +48,9 @@ COPY --from=builder /release/* . RUN chmod 777 /app && \ mkdir /usr/share/hyperlane/ && \ - chmod 1000 /usr/share/hyperlane + chmod 1000 /usr/share/hyperlane && \ + mkdir /data/ && \ + chown -R 1000 /data/ USER 1000 ENTRYPOINT ["tini", "--"]