Skip to content

Commit e978c34

Browse files
committed
actions
1 parent 3e9384e commit e978c34

1 file changed

Lines changed: 8 additions & 12 deletions

File tree

Dockerfile

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Ubuntu 22.04 (Jammy) · R 4.2 · Dependencies for ExampleStudy
22
# For Snowflake ODBC use: docker build --platform linux/amd64 ...
3-
ARG TARGETPLATFORM=linux/amd64
4-
FROM --platform=${TARGETPLATFORM} rocker/rstudio:4.2
3+
FROM rocker/rstudio:4.2
54
LABEL org.opencontainers.image.maintainer="Adam Black <a.black@darwin-eu.org>"
65

76
# Install java and rJava
@@ -32,19 +31,16 @@ RUN apt-get -y update && apt-get install -y \
3231
&& rm -rf /var/lib/apt/lists/
3332

3433
RUN install2.r --error openssl httr xml2 remotes && rm -rf /tmp/download_packages/ /tmp/*.rds
34+
RUN install2.r --error duckdb && rm -rf /tmp/download_packages/ /tmp/*.rds
3535

3636
# Install odbc and RPostgres drivers (unixODBC + dev headers + pkg-config for R odbc package)
3737
RUN apt-get -y update && apt-get install -y --install-suggests \
38-
unixodbc unixodbc-dev libpq-dev curl pkg-config build-essential \
39-
&& apt-get clean \
40-
&& rm -rf /var/lib/apt/lists/ \
41-
&& PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib/pkgconfig
42-
43-
RUN install2.r --error RPostgres duckdb \
44-
&& PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib/pkgconfig \
45-
46-
RUN install2.r --error odbc \
47-
&& rm -rf /tmp/download_packages/ /tmp/*.rds
38+
unixodbc unixodbc-dev libpq-dev curl pkg-config build-essential \
39+
&& apt-get clean \
40+
&& rm -rf /var/lib/apt/lists/ \
41+
&& PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib/pkgconfig \
42+
install2.r --error odbc \
43+
&& rm -rf /tmp/download_packages/ /tmp/*.rds
4844

4945
# Install Darwin packages (and study Imports: dplyr, ggplot2, shiny, plotly)
5046
RUN install2.r --error \

0 commit comments

Comments
 (0)