Spaces:
Running
Running
File size: 747 Bytes
700a635 dd37df9 f9dffaf dd37df9 700a635 dd37df9 700a635 dd37df9 700a635 dd37df9 700a635 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
FROM python:3.10-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
chromium chromium-driver wget curl unzip gnupg ca-certificates \
libnss3 libgconf-2-4 libxi6 libxcursor1 libxdamage1 libxrandr2 libatk-bridge2.0-0 \
libgtk-3-0 libxss1 libasound2 libxcomposite1 libxfixes3 libxrender1 libxtst6 \
fonts-liberation xdg-utils && \
rm -rf /var/lib/apt/lists/*
# Set environment variables for Chromium
ENV CHROME_BIN=/usr/bin/chromium
ENV CHROMEDRIVER_PATH=/usr/lib/chromium/chromedriver
WORKDIR /app
COPY . .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Run the Streamlit app
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|