r-builds/builder/Dockerfile.ubuntu-1804
Greg Lin 6098b0074f Pin fpm to 1.11.0
fpm 1.12.0 adds an unintended runtime dependency on git, which should be
fixed in a future release. Pin fpm for now since installing git has its
own side effects, such as installing less and changing the default pager
on systems where less isn't available by default.
2021-02-16 10:51:15 -06:00

24 lines
600 B
Text

FROM ubuntu:bionic
ENV OS_IDENTIFIER ubuntu-1804
RUN set -x \
&& sed -i "s|# deb-src|deb-src|g" /etc/apt/sources.list \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y libcurl4-openssl-dev libicu-dev libopenblas-base libpcre2-dev wget python-pip ruby ruby-dev \
&& apt-get build-dep -y r-base
RUN pip install awscli
# Pin fpm to avoid git dependency in 1.12.0
RUN gem install fpm:1.11.0
RUN chmod 0777 /opt
# Override the default pager used by R
ENV PAGER /usr/bin/pager
COPY package.ubuntu-1804 /package.sh
COPY build.sh .
ENTRYPOINT ./build.sh