quarto-template / Dockerfile
gordon-posit's picture
Remove alpine
9385c54
raw
history blame
447 Bytes
ARG QUARTO_VERSION="1.3.340"
# Use the Quarto base image
FROM ghcr.io/quarto-dev/quarto:${QUARTO_VERSION} AS builder
COPY src /app
WORKDIR /app
# Install Python requirements
USER root
RUN apt-get update && apt-get install -y python3 python3-pip
COPY requirements.txt /app/
RUN pip3 install -r requirements.txt
# Use Quarto to render your site
RUN quarto render .
EXPOSE 7860
CMD ["python", "-m", "http.server", "7860", "--directory", "_site"]