Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy custom config files to docker image #208

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file added docker/container/libreoffice-config.tar.gz
Binary file not shown.
7 changes: 7 additions & 0 deletions docker/docker_files/ubuntu2204-lo7.5.9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ COPY --chown=$user:$user container/* $home/
RUN chmod +x $home/start.sh
RUN chmod +x $home/update-libreoffice-config.sh

# Switch to the $user or else .config will be created as root
USER $user
# Create the $home/.config directory and extract the libreoffice-config.tar.gz file into it
RUN mkdir -p $home/.config && \
tar -xzf $home/libreoffice-config.tar.gz -C $home/.config && \
rm $home/libreoffice-config.tar.gz
USER root
WORKDIR $home

ENV USER=$user
Expand Down