google_link_scraper / Dockerfile
Strelema's picture
Update Dockerfile
dd29066 verified
Raw History Blame Contribute Delete
927 Bytes
# FROM python:3.10-slim
# WORKDIR /app
# # Install Chromium + Driver
# RUN apt-get update && apt-get install -y \
# chromium \
# chromium-driver \
# curl \
# unzip \
# && rm -rf /var/lib/apt/lists/*
# # Copy files
# COPY requirements.txt .
# COPY app.py .
# # Install Python packages
# RUN pip install --no-cache-dir -r requirements.txt
# # Streamlit settings
# ENV STREAMLIT_SERVER_PORT=8501
# ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
# EXPOSE 8501
# # Run app
# CMD ["streamlit", "run", "app.py"]
FROM python:3.10-slim
RUN apt-get update && apt-get install -y \
wget \
gnupg \
unzip \
chromium \
chromium-driver \
&& rm -rf /var/lib/apt/lists/*
ENV CHROME_BIN=/usr/bin/chromium
ENV CHROMEDRIVER=/usr/bin/chromedriver
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
CMD ["streamlit","run","app.py","--server.port=8501","--server.address=0.0.0.0"]