Skip to content

Commit

Permalink
Using my own image to build.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereckmezquita committed Jul 12, 2024
1 parent 800be80 commit ca5c549
Showing 1 changed file with 2 additions and 30 deletions.
32 changes: 2 additions & 30 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,42 +1,14 @@
FROM --platform=linux/arm64 r-base:4.3.2 as builder

# Install system dependencies and TeX Live
RUN apt-get update && apt-get install -y --no-install-recommends \
wget \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
libfontconfig1-dev \
libfreetype6-dev \
libharfbuzz-dev \
libfribidi-dev \
libpng-dev \
libtiff5-dev \
libjpeg-dev \
texlive-full \
fonts-texgyre \
fonts-ebgaramond \
&& rm -rf /var/lib/apt/lists/*

# Install Quarto
ENV QUARTO_VERSION="1.5.54"
RUN wget "https://github.com/quarto-dev/quarto-cli/releases/download/v${QUARTO_VERSION}/quarto-${QUARTO_VERSION}-linux-arm64.deb" && \
dpkg -i quarto-${QUARTO_VERSION}-linux-arm64.deb && \
apt-get update && apt-get install -f -y && \
rm quarto-${QUARTO_VERSION}-linux-arm64.deb
FROM dereckmezquita/r-quarto-base:latest AS builder

WORKDIR /app

COPY . /app

# Debug: List installed fonts
RUN fc-list

# Render Quarto document
RUN quarto render /app --output-dir /app/output

# Serve static files
FROM --platform=linux/arm64 nginx:stable-alpine
FROM nginx:stable-alpine AS runner

COPY --from=builder /app/output /usr/share/nginx/html

Expand Down

0 comments on commit ca5c549

Please sign in to comment.