KCH / Dockerfile
bsamadi's picture
Adding curl
aaec0f8
raw
history blame contribute delete
525 Bytes
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"]