Skip to content

Commit

Permalink
Minor refinements in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
BerriJ committed Oct 8, 2024
1 parent e17da0e commit 96ca106
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ COPY .misc/lmroman10-regular-webfont.ttf /usr/share/fonts/truetype/.
COPY .misc/lmroman10-italic-webfont.ttf /usr/share/fonts/truetype/.
COPY .misc/lmroman10-bolditalic-webfont.ttf /usr/share/fonts/truetype/.
COPY .misc/lmroman10-bold-webfont.ttf /usr/share/fonts/truetype/.

RUN fc-cache -f -v

# Install quarto
Expand Down Expand Up @@ -157,6 +156,8 @@ COPY package_lists/r_packages_github.txt /tmp/r_packages_github.txt
RUN chmod +x /tmp/install_r.sh &&\
/tmp/install_r.sh

RUN chown -R $USERNAME /usr/local

COPY --chown=$USERNAME .misc/.zshrc /home/$USERNAME/.

COPY --chown=$USERNAME .misc/.Rprofile /home/$USERNAME/.
Expand All @@ -167,8 +168,6 @@ COPY --chown=$USERNAME .misc/Makevars /home/$USERNAME/.R/.
RUN mkdir /home/$USERNAME/.ccache && chown -R $USERNAME /home/$USERNAME/.ccache
COPY --chown=$USERNAME .misc/ccache.conf /home/$USERNAME/.ccache/.

RUN chown -R $USERNAME /usr/local

# Switch to non-root user
USER $USERNAME

Expand Down

0 comments on commit 96ca106

Please sign in to comment.