Spaces:
Sleeping
Sleeping
File size: 688 Bytes
01a4dc9 1b71817 01a4dc9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
FROM ubuntu:22.04
# Prevent interactive prompts during installation
ENV DEBIAN_FRONTEND=noninteractive
# Install system dependencies
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
libreoffice \
libreoffice-script-provider-python \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy application files
COPY requirements.txt .
# Install Python dependencies
RUN pip3 install --no-cache-dir -r requirements.txt
COPY . .
# Create directories for file handling
RUN mkdir -p uploads outputs
# Expose port
EXPOSE 8000
# Start script to run both unoserver and FastAPI
COPY start.sh .
RUN chmod +x start.sh
CMD ["./start.sh"] |