FROM python:3.9 RUN useradd -m -u 1000 user USER user ENV HOME=/home/user \ PATH=/home/user/.local/bin:$PATH WORKDIR $HOME/app RUN pip install --no-cache-dir --upgrade pip RUN mkdir -p /data RUN chmod 777 /data 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 mkdir /usr/local/lib/python3.9/site-packages/seleniumbase/drivers/uc_driver 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"]