|
|
|
|
@ -22,9 +22,11 @@ RUN poetry install --no-root
|
|
|
|
|
# Use a new slim image for the runtime
|
|
|
|
|
FROM python:3.11-slim as runtime
|
|
|
|
|
|
|
|
|
|
# Install necessary tools for running the app, including `make`
|
|
|
|
|
# Install necessary tools for running the app, including `make` and LibreOffice
|
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
|
make \
|
|
|
|
|
libreoffice \
|
|
|
|
|
libreoffice-writer \
|
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
|
|
# Set environment variables for Poetry
|
|
|
|
|
@ -47,4 +49,4 @@ EXPOSE 3005
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
# Run `make run` as the entry point
|
|
|
|
|
CMD ["make", "run"]
|
|
|
|
|
CMD ["make", "run"]
|