Skip to content

Commit 0852e0f

Browse files
fix(docker): set HOME environment variable explicitly in Dockerfile
The HOME environment variable was defaulting to /root when the container started, causing cache directories to be incorrectly set up under /root/.cache/zebra instead of /home/zebra/.cache/zebra. This explicit setting ensures the HOME environment variable is correctly set to the zebra user's home directory.
1 parent f0140a4 commit 0852e0f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docker/Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ ENV GID=${GID}
7272
ARG USER
7373
ENV USER=${USER}
7474
ARG HOME
75+
ENV HOME=${HOME}
7576

7677
RUN addgroup --quiet --gid ${GID} ${USER} && \
7778
adduser --quiet --gid ${GID} --uid ${UID} --home ${HOME} ${USER} --disabled-password --gecos ""
@@ -191,6 +192,7 @@ ENV GID=${GID}
191192
ARG USER
192193
ENV USER=${USER}
193194
ARG HOME
195+
ENV HOME=${HOME}
194196

195197
RUN addgroup --quiet --gid ${GID} ${USER} && \
196198
adduser --quiet --gid ${GID} --uid ${UID} --home ${HOME} ${USER} --disabled-password --gecos ""

0 commit comments

Comments
 (0)