Skip to content

Commit b489415

Browse files
committed
fixing failed to create modcache index dir: mkdir /.cache: permission denied
1 parent a107c1a commit b489415

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ RUN echo "insights:x:1000:1000::/go:/bin/bash" >>/etc/passwd && \
7070
mkdir /go && \
7171
chown insights:insights /go
7272

73+
ENV XDG_CACHE_HOME=/tmp
74+
7375
# copy root ca certs so we can access https://logs.us-east-1.amazonaws.com/
7476
COPY --from=buildimg /etc/pki/tls/certs/ca-bundle.crt /etc/pki/tls/certs/
7577

0 commit comments

Comments
 (0)