Omar ID EL MOUMEN
commited on
Commit
·
b08b330
1
Parent(s):
b949fa8
Downloading libreoffice for headless doc.x to pdf conversion
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
@@ -10,4 +10,9 @@ COPY --chown=user ./requirements.txt requirements.txt
|
|
10 |
RUN pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --no-cache-dir --upgrade -r requirements.txt
|
11 |
|
12 |
COPY --chown=user . /app
|
|
|
|
|
|
|
|
|
|
|
13 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
10 |
RUN pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --no-cache-dir --upgrade -r requirements.txt
|
11 |
|
12 |
COPY --chown=user . /app
|
13 |
+
|
14 |
+
RUN apt-get update && \
|
15 |
+
apt-get install -y libreoffice libreoffice-writer libreoffice-calc libreoffice-impress && \
|
16 |
+
apt-get clean && rm -rf /var/lib/apt/lists/*
|
17 |
+
|
18 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|