Skip to content

Commit

Permalink
Explicitly use / as home directory, not /root
Browse files Browse the repository at this point in the history
The home directory seems to have changed, and the value of $HOME is /config, which is odd.
  • Loading branch information
dragon-dxw committed Nov 21, 2024
1 parent 1df69a8 commit ca72039
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ COPY ./fonts ./fonts
# NOT FOR PRODUCTION
COPY ./.env ./.env

ENV HOME=/

# Copy a LibreOffice config file which uses Times New Roman as the
# default font -- see README.txt
RUN mkdir -p /root/.config/libreoffice/4/user
RUN mkdir /root/.config/fontconfig
RUN cp registrymodifications.xcu /root/.config/libreoffice/4/user/registrymodifications.xcu
RUN cp fonts.conf /root/.config/fontconfig/fonts.conf
RUN mkdir -p $HOME/.config/libreoffice/4/user
RUN mkdir $HOME/.config/fontconfig
RUN cp registrymodifications.xcu $HOME/.config/libreoffice/4/user/registrymodifications.xcu
RUN cp fonts.conf $HOME/.config/fontconfig/fonts.conf

# Install fonts
RUN mkdir -p /usr/share/fonts/truetype/docker-context
Expand Down

0 comments on commit ca72039

Please sign in to comment.