Skip to content

Commit

Permalink
fix: Add data directory owned by user 1000 (#2692)
Browse files Browse the repository at this point in the history
### 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
  • Loading branch information
Guillaume Bouvignies authored Aug 29, 2023
1 parent 1f4ddfa commit 9612623
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rust/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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", "--"]
Expand Down

0 comments on commit 9612623

Please sign in to comment.