Spaces:
Sleeping
Sleeping
File size: 513 Bytes
0ab0788 | 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 | FROM python:3.11-slim
RUN apt-get update && apt-get install -y \
build-essential \
git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
COPY download_data.py .
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install huggingface_hub
RUN rm -rf ~/.cache/huggingface/hub && \
python download_data.py
COPY . .
EXPOSE 7860
ENV MPLCONFIGDIR=/tmp/matplotlib
ENV PYTHONPATH=/app
CMD ["streamlit", "run", "main.py", "--server.port=7860", "--server.address=0.0.0.0"]
|