File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build and Push Docker Image
2+
3+ on :
4+ push :
5+ branches : [main]
6+ paths :
7+ - Dockerfile
8+ - make_local
9+ - texlive.profile
10+ workflow_dispatch :
11+
12+ jobs :
13+ build-and-push :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v4
19+
20+ - name : Log in to Docker Hub
21+ uses : docker/login-action@v3
22+ with :
23+ username : ${{ secrets.DOCKERHUB_USERNAME }}
24+ password : ${{ secrets.DOCKERHUB_TOKEN }}
25+
26+ - name : Set up Docker Buildx
27+ uses : docker/setup-buildx-action@v3
28+
29+ - name : Build and push
30+ uses : docker/build-push-action@v6
31+ with :
32+ context : .
33+ platforms : linux/amd64
34+ push : true
35+ tags : jflournoy/verse-cmdstan:cppopt
36+ cache-from : type=registry,ref=jflournoy/verse-cmdstan:buildcache
37+ cache-to : type=registry,ref=jflournoy/verse-cmdstan:buildcache,mode=max
Original file line number Diff line number Diff line change @@ -143,6 +143,25 @@ RUN wget --no-check-certificate https://github.com/rocker-org/rocker-versioned2/
143143 bash install_quarto.sh && \
144144 rm ./install_quarto.sh
145145
146+ # Install Chromium for Quarto (diagram rendering, etc.) and its dependencies
147+ RUN apt-get update \
148+ && apt-get install -y --no-install-recommends \
149+ libatk1.0-0 \
150+ libatk-bridge2.0-0 \
151+ libcups2 \
152+ libxcomposite1 \
153+ libxrandr2 \
154+ libxdamage1 \
155+ libxkbcommon0 \
156+ libasound2 \
157+ libpangocairo-1.0-0 \
158+ libpango-1.0-0 \
159+ libgbm1 \
160+ libnss3 \
161+ && apt-get clean \
162+ && rm -rf /var/lib/apt/lists/* \
163+ && quarto install chromium
164+
146165# ========================================
147166# Git LFS
148167# ========================================
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ version: '3.8'
22
33services :
44 rstudio :
5- platform : linux/arm64
5+ platform : linux/amd64
66 image : jflournoy/verse-cmdstan:cppopt
77 privileged : true
88 ports :
You can’t perform that action at this time.
0 commit comments