Spaces:
Sleeping
Sleeping
File size: 541 Bytes
5343073 ed8f2ba 5343073 0c09182 ed8f2ba 5343073 0c09182 ed8f2ba 0c09182 ed8f2ba 5343073 0c09182 ed8f2ba 0c09182 ed8f2ba 0c09182 ed8f2ba 5343073 |
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
# Minimal system deps helpful for wheels/compiles
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libjpeg62-turbo-dev \
zlib1g-dev \
libfreetype6-dev \
libpng-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
RUN pip install --upgrade pip setuptools wheel
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENV PORT=7860
EXPOSE 7860
CMD ["bash","-lc","streamlit run app.py --server.port=$PORT --server.address=0.0.0.0"]
|