Skip to content

Commit 40227c7

Browse files
committed
Add writable $HOME in Docker
Not really needed, but it won't harm either.
1 parent 91bef7c commit 40227c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ci/Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ ENV CI=1
88
ARG DOCKER_PLATFORM
99
ENV DOCKER_PLATFORM="${DOCKER_PLATFORM}"
1010

11+
# we need to provide some writable $HOME for the (random) used ID we use in the build script
12+
RUN install -d -m 0777 /home/user
13+
ENV HOME=/home/user
14+
1115
# let the install script do the heavy lifting (easier than replicating the complex behavior in a Dockerfile)
1216
COPY install-deps.sh /
1317
RUN bash -xe install-deps.sh

0 commit comments

Comments
 (0)