Skip to content

Commit

Permalink
fixing docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
explodecomputer committed Nov 18, 2024
1 parent 5708038 commit 81e3ba3
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@ RUN apt-get update && \
libharfbuzz-dev \
libtiff-dev \
libzstd-dev \
git \
libgit2-dev \
libfribidi-dev

# Wait until MRCIEU R-Universe has built latest version of the TwoSampleMR binary
# Should be 1 hour or maybe overnight
# Check https://mrcieu.r-universe.dev/TwoSampleMR
# I set the HTTPUserAgent option in order to obtain binary packages from the
# Public Posit Package Manager (otherwise source packages which will have to
# be built will be obtained).
libfribidi-dev \
wget && \
wget https://launchpad.net/ubuntu/+source/icu/70.1-2/+build/23145450/+files/libicu70_70.1-2_amd64.deb && \
dpkg -i libicu70_70.1-2_amd64.deb && \
ln -s /usr/lib/x86_64-linux-gnu/libgit2.so.1.7 /usr/lib/x86_64-linux-gnu/libgit2.so.1.1

WORKDIR /project
COPY renv.lock renv.lock
Expand All @@ -41,7 +39,7 @@ RUN R -e 'options( \
R.version["platform"], \
R.version["arch"], \
R.version["os"]))); \
renv::install("stringi"); \
renv::install(c("stringi", "git2r")); \
renv::restore(repos = c(CRAN = "https://packagemanager.posit.co/cran/__linux__/jammy/latest"))'

COPY . .

0 comments on commit 81e3ba3

Please sign in to comment.