Skip to content

Commit 7d36cad

Browse files
authored
Docker: Fix geodata directory permissions issue (#4790)
Fixes #4747 (comment)
1 parent a576a4b commit 7d36cad

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/docker/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ RUN mkdir -p /tmp/var/log/xray && touch \
4545
FROM gcr.io/distroless/static:nonroot
4646

4747
COPY --from=build --chown=0:0 --chmod=755 /src/xray /usr/local/bin/xray
48+
COPY --from=build --chown=0:0 --chmod=755 /tmp/empty /usr/local/share/xray
4849
COPY --from=build --chown=0:0 --chmod=644 /tmp/geodat/*.dat /usr/local/share/xray/
4950
COPY --from=build --chown=0:0 --chmod=755 /tmp/empty /usr/local/etc/xray
5051
COPY --from=build --chown=0:0 --chmod=644 /tmp/usr/local/etc/xray/*.json /usr/local/etc/xray/

.github/docker/Dockerfile.usa

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ RUN mkdir -p /tmp/var/log/xray && touch \
5454
FROM --platform=linux/amd64 gcr.io/distroless/static:nonroot
5555

5656
COPY --from=build --chown=0:0 --chmod=755 /src/xray /usr/local/bin/xray
57+
COPY --from=build --chown=0:0 --chmod=755 /tmp/empty /usr/local/share/xray
5758
COPY --from=build --chown=0:0 --chmod=644 /tmp/geodat/*.dat /usr/local/share/xray/
5859
COPY --from=build --chown=0:0 --chmod=755 /tmp/empty /usr/local/etc/xray
5960
COPY --from=build --chown=0:0 --chmod=644 /tmp/usr/local/etc/xray/*.json /usr/local/etc/xray/

0 commit comments

Comments
 (0)