Rogaton
Force clean Docker build to fix transformers ImportError
e0bd56d
raw
history blame contribute delete
469 Bytes
FROM python:3.9
# Install SWI-Prolog for neural-symbolic parsing
RUN apt-get update && apt-get install -y \
swi-prolog \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /code
# Upgrade pip and install build tools
RUN pip install --no-cache-dir --upgrade pip setuptools wheel
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 7860
CMD ["streamlit", "run", "apertus_ui.py", "--server.port=7860", "--server.address=0.0.0.0"]