feat: add WeasyPrint installation to Dockerfile and create startup scripts for Celery and FastAPI
This commit is contained in:
@@ -20,9 +20,12 @@ RUN --mount=type=cache,target=/root/.cache/uv \
|
||||
|
||||
# Then, use a final image without uv
|
||||
FROM python:3.11-slim-bookworm
|
||||
# It is important to use the image that matches the builder, as the path to the
|
||||
# Python executable must be the same, e.g., using `python:3.11-slim-bookworm`
|
||||
# will fail.
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y weasyprint && \
|
||||
apt clean && \
|
||||
rm -rf /var/cache/apt/*
|
||||
|
||||
|
||||
# Copy the application from the builder
|
||||
COPY --from=builder --chown=app:app /app /app
|
||||
|
||||
Reference in New Issue
Block a user