25 lines
752 B
Text
25 lines
752 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 curl libcurl4-openssl-dev libicu-dev libopenblas-base libpcre2-dev wget python-pip \
|
|
&& apt-get build-dep -y r-base
|
|
|
|
RUN pip install awscli
|
|
|
|
RUN curl -LO "https://github.com/goreleaser/nfpm/releases/download/v2.18.1/nfpm_$(dpkg --print-architecture).deb" && \
|
|
apt install -y "./nfpm_$(dpkg --print-architecture).deb" && \
|
|
rm "nfpm_$(dpkg --print-architecture).deb"
|
|
|
|
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
|