Onedrive / Dockerfile
sanch1tx's picture
Update Dockerfile
c15e9c2 verified
raw
history blame contribute delete
432 Bytes
# Base
FROM python:3.12-slim
ENV PYTHONUNBUFFERED=1
# Install LibreOffice + fonts
RUN apt-get update && apt-get install -y \
libreoffice \
libreoffice-writer \
fonts-dejavu-core \
fonts-liberation \
wget \
curl \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Python deps
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# App
COPY . .
EXPOSE 7860
CMD ["python", "app.py"]