File size: 525 Bytes
34e36d9 c032460 34e36d9 aaec0f8 34e36d9 aaec0f8 c032460 34e36d9 c032460 34e36d9 c032460 34e36d9 c032460 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
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"] |