CoolFace
Apppublic

PrashantRGore/Drug_Causality_Classifier

sourceHugging Facemitupdated 11mo agoView on Hugging Face
0likes
Dockerfile26 linesDownload Raw Back to root
1FROM python:3.11-slim2 3WORKDIR /app4 5RUN apt-get update && apt-get install -y \6    build-essential \7    curl \8    git \9    && rm -rf /var/lib/apt/lists/*10 11COPY requirements.txt .12RUN pip install --no-cache-dir -r requirements.txt13 14COPY streamlit_app.py .15COPY app/ ./app/16COPY src/ ./src/17COPY models/ ./models/18 19RUN mkdir -p ~/.streamlit && \20    echo "[server]" > ~/.streamlit/config.toml && \21    echo "headless = true" >> ~/.streamlit/config.toml && \22    echo "port = 7860" >> ~/.streamlit/config.toml && \23    echo "enableXsrfProtection = false" >> ~/.streamlit/config.toml24 25CMD ["streamlit", "run", "streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0"]26