Update Dockerfile
Browse files- Dockerfile +8 -3
Dockerfile
CHANGED
|
@@ -1,15 +1,20 @@
|
|
| 1 |
# Dockerfile
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
-
# Install LibreOffice and other dependencies for
|
| 5 |
-
#
|
| 6 |
RUN apt-get update && \
|
| 7 |
-
apt-get install -y
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
rm -rf /var/lib/apt/lists/*
|
| 9 |
|
| 10 |
# Install Python dependencies from requirements.txt
|
| 11 |
COPY requirements.txt /app/
|
| 12 |
WORKDIR /app
|
|
|
|
| 13 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 14 |
|
| 15 |
# Copy the application code
|
|
|
|
| 1 |
# Dockerfile
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
+
# Install LibreOffice, unoconv, and other dependencies required for file conversion
|
| 5 |
+
# unoconv is a reliable command-line utility for conversion on Linux
|
| 6 |
RUN apt-get update && \
|
| 7 |
+
apt-get install -y \
|
| 8 |
+
libreoffice \
|
| 9 |
+
unoconv \
|
| 10 |
+
python3-uno \
|
| 11 |
+
&& \
|
| 12 |
rm -rf /var/lib/apt/lists/*
|
| 13 |
|
| 14 |
# Install Python dependencies from requirements.txt
|
| 15 |
COPY requirements.txt /app/
|
| 16 |
WORKDIR /app
|
| 17 |
+
# We remove docx2pdf as it caused the error and is no longer needed
|
| 18 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 19 |
|
| 20 |
# Copy the application code
|