Spaces:
Sleeping
Sleeping
File size: 519 Bytes
837441a db33cf0 837441a b584cba db33cf0 |
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 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
RUN quarto render .
EXPOSE 7860
CMD ["python3", "-m", "http.server", "7860", "--directory", "_site"]
#RUN mkdir -p /.cache/quarto && chmod 777 /.cache/quarto
#CMD ["quarto", "preview", "--port", "7860"]
|