Spaces:
Runtime error
Runtime error
FROM python:3.9 | |
WORKDIR /code | |
COPY ./requirements.txt /code/requirements.txt | |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
RUN mkdir downloaded_files && chmod 777 downloaded_files | |
RUN chmod 777 /usr/local/lib/python3.9/site-packages/seleniumbase/drivers/uc_driver | |
# RUN apt-get update | |
# RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
# RUN wget https://storage.googleapis.com/chrome-for-testing-public/124.0.6367.91/linux64/chromedriver-linux64.zip | |
# RUN apt install -y ./google-chrome-stable_current_amd64.deb | |
RUN seleniumbase get chromedriver | |
COPY . . | |
CMD ["python", "app/main.py"] |