| ARG QUARTO_VERSION="1.4.550" | |
| # Use the Quarto base image | |
| FROM ghcr.io/quarto-dev/quarto:${QUARTO_VERSION} AS builder | |
| # Copy project files | |
| COPY . /app | |
| WORKDIR /app | |
| # Install curl and pixi | |
| USER root | |
| RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* | |
| RUN curl -fsSL https://pixi.sh/install.sh | bash | |
| ENV PATH="/root/.pixi/bin:$PATH" | |
| # Install dependencies and render the site | |
| RUN pixi install | |
| RUN pixi run render | |
| # Expose port and serve the site using pixi | |
| EXPOSE 7860 | |
| CMD ["pixi", "run", "serve"] |