fpm has had multiple Ruby gem dependency issues, and nfpm has better support for code signing if we wanted to do that in the future. The rest of the platforms may be migrated to nfpm later.
28 lines
762 B
Text
28 lines
762 B
Text
FROM ubuntu:jammy
|
|
|
|
ENV OS_IDENTIFIER ubuntu-2204
|
|
|
|
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 python3-pip \
|
|
&& apt-get build-dep -y r-base
|
|
|
|
RUN pip3 install awscli
|
|
|
|
RUN curl -LO https://github.com/goreleaser/nfpm/releases/download/v2.18.1/nfpm_amd64.deb && \
|
|
apt install -y ./nfpm_amd64.deb && \
|
|
rm nfpm_amd64.deb
|
|
|
|
RUN chmod 0777 /opt
|
|
|
|
# Override the default pager used by R
|
|
ENV PAGER /usr/bin/pager
|
|
|
|
# R 3.x requires PCRE2 for Pango support on Ubuntu 22
|
|
ENV INCLUDE_PCRE2_IN_R_3 yes
|
|
|
|
COPY package.ubuntu-2204 /package.sh
|
|
COPY build.sh .
|
|
ENTRYPOINT ./build.sh
|