r-builds/builder/Dockerfile.debian-10
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

25 lines
642 B
Text

FROM debian:buster
ENV OS_IDENTIFIER debian-10
RUN set -x \
&& export DEBIAN_FRONTEND=noninteractive \
&& echo 'deb-src http://deb.debian.org/debian buster main' >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y gcc libcurl4-openssl-dev libicu-dev \
libopenblas-base libpcre2-dev make python3-pip ruby ruby-dev wget \
&& apt-get build-dep -y r-base
RUN pip3 install awscli
RUN chmod 0777 /opt
# Pin fpm to avoid git dependency in 1.12.0
RUN gem install fpm:1.11.0
# Override the default pager used by R
ENV PAGER /usr/bin/pager
COPY package.debian-10 /package.sh
COPY build.sh .
ENTRYPOINT ./build.sh