22 lines
536 B
Docker
22 lines
536 B
Docker
# Copyright 2026 Umbra Tools (umbratools.com)
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
FROM python:3.12-slim
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends libreoffice-core libreoffice-writer && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY umbraformat/ umbraformat/
|
|
|
|
RUN mkdir -p umbraformat/uploads umbraformat/formatted
|
|
|
|
EXPOSE 5001
|
|
|
|
CMD ["python", "-c", "from umbraformat.app import app; app.run(host='0.0.0.0', port=5001)"]
|