sanch1tx commited on
Commit
c15e9c2
·
verified ·
1 Parent(s): 846bfba

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -9
Dockerfile CHANGED
@@ -1,31 +1,27 @@
1
- # Base image
2
  FROM python:3.12-slim
3
 
4
- # Avoid Python buffering
5
  ENV PYTHONUNBUFFERED=1
6
 
7
- # Install system dependencies: LibreOffice, unoconv, fonts, wget, and curl
8
  RUN apt-get update && apt-get install -y \
9
  libreoffice \
10
- unoconv \
11
  fonts-dejavu-core \
12
  fonts-liberation \
13
  wget \
14
  curl \
15
  && rm -rf /var/lib/apt/lists/*
16
 
17
- # Set working directory
18
  WORKDIR /app
19
 
20
- # Copy requirements and install Python packages
21
  COPY requirements.txt .
22
  RUN pip install --no-cache-dir -r requirements.txt
23
 
24
- # Copy the app code
25
  COPY . .
26
 
27
- # Expose PyWebIO port
28
  EXPOSE 7860
29
 
30
- # Start the app
31
  CMD ["python", "app.py"]
 
1
+ # Base
2
  FROM python:3.12-slim
3
 
 
4
  ENV PYTHONUNBUFFERED=1
5
 
6
+ # Install LibreOffice + fonts
7
  RUN apt-get update && apt-get install -y \
8
  libreoffice \
9
+ libreoffice-writer \
10
  fonts-dejavu-core \
11
  fonts-liberation \
12
  wget \
13
  curl \
14
  && rm -rf /var/lib/apt/lists/*
15
 
 
16
  WORKDIR /app
17
 
18
+ # Python deps
19
  COPY requirements.txt .
20
  RUN pip install --no-cache-dir -r requirements.txt
21
 
22
+ # App
23
  COPY . .
24
 
 
25
  EXPOSE 7860
26
 
 
27
  CMD ["python", "app.py"]