[main]: install curl in dockerfile
Build and Push Docker Image / build (push) Failing after 14m57s

This commit is contained in:
John Gatward
2026-08-04 20:58:01 +01:00
parent c7dedf471d
commit 699a969a81
3 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ jobs:
docker buildx create --name ci-builder --driver docker-container --use || docker buildx use ci-builder
docker buildx inspect --bootstrap
- name: Build and push image (with cache)
- name: Build and push image
run: |
docker buildx build \
--pull \
+10 -1
View File
@@ -2,6 +2,7 @@ FROM rocker/shiny:4.4.0
# System dependencies commonly required by R packages
RUN apt-get update && apt-get install -y \
curl \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
@@ -22,7 +23,15 @@ COPY . /srv/shiny-server/
# Prevent renv attempting to use pak
ENV RENV_CONFIG_PAK_ENABLED=FALSE
ENV CFLAGS=-Wno-error=format-security
ENV RENV_DOWNLOAD_METHOD=libcurl
# Some CRAN packages in this lockfile fail under Ubuntu hardening defaults
# because -Werror=format-security turns benign warnings into build failures.
RUN for f in /usr/local/lib/R/etc/Makeconf /usr/lib/R/etc/Makeconf; do \
if [ -f "$f" ]; then \
sed -i 's/-Werror=format-security/-Wno-error=format-security/g' "$f"; \
fi; \
done
# Install renv and restore project packages
RUN R --vanilla -e "install.packages('renv', repos='https://cran.rstudio.com')" && \
-2
View File
@@ -1,9 +1,7 @@
library(plotly)
library(shiny)
library(shinyjs)
library(htmlwidgets)
library(tidyverse)
library(DT)
library(plm)
library(lmtest)
library(cluster)