|
FROM python:3.10 |
|
|
|
|
|
RUN apt-get update && apt-get install -y \ |
|
wget \ |
|
gnupg2 \ |
|
apt-transport-https \ |
|
ca-certificates |
|
|
|
|
|
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ |
|
&& echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list |
|
|
|
|
|
RUN apt-get update && apt-get install -y \ |
|
google-chrome-stable \ |
|
chromium-chromedriver |
|
|
|
|
|
WORKDIR /code |
|
|
|
|
|
COPY requirements.txt /code/ |
|
RUN pip install --no-cache-dir -r requirements.txt |
|
|
|
|
|
COPY . /code/ |
|
|
|
|
|
CMD ["python", "gradio.py"] |