Spaces:
Sleeping
Sleeping
| 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"] |