Spaces:
Running
Running
File size: 663 Bytes
eafe0e0 ff4dcb7 eafe0e0 ff4dcb7 eafe0e0 ff4dcb7 eafe0e0 104dfaf ff4dcb7 33fc075 eafe0e0 33fc075 eafe0e0 ff4dcb7 33fc075 eafe0e0 ff4dcb7 33fc075 ff4dcb7 33fc075 | 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 27 28 29 30 31 32 | # Use an official Python runtime as a parent image
FROM python:3.9-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
# Install system dependencies
RUN apt-get update && apt-get install -y \
curl \
libglib2.0-0 \
libsm6 \
libxrender1 \
libxext6 \
libfontconfig1 \
libgl1 \
&& rm -rf /var/lib/apt/lists/*
# Set the working directory
WORKDIR /app
# Copy files
COPY . /app
# Install python packages
RUN pip install --no-cache-dir -r requirements.txt
# Spaces requires port 7860
EXPOSE 7860
# Run Streamlit
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] |