Spaces:
Build error
Build error
| FROM seleniarm/standalone-firefox:latest | |
| ENV HOME=/home/seluser | |
| ENV MAIN_ENV=dev-selenium | |
| ENV SE_BIND_PORT=7860 | |
| USER root | |
| RUN apt-get update && apt-get install -y python3-pip vim | |
| RUN rm -rf /usr/lib/python3.11/EXTERNALLY-MANAGED | |
| COPY .docker/.contrib /usr/local/bin | |
| ADD . /opt/app/ | |
| RUN chown -R 1001:0 /opt/app | |
| #RUN /usr/local/bin/fix-permissions /opt/app | |
| RUN chown -R 1001:0 /opt/selenium | |
| #RUN /usr/local/bin/fix-permissions /opt/selenium | |
| #RUN /usr/local/bin/fix-permissions $HOME | |
| RUN mkdir -p /.config/pip | |
| COPY ./start-selenium-standalone.sh /opt/bin/start-selenium-standalone.sh | |
| RUN chmod 777 /opt/bin/start-selenium-standalone.sh | |
| USER 1001 | |
| WORKDIR /opt/app | |
| COPY ./requirements.txt /opt/app/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /opt/app/requirements.txt | |
| #RUN nohup sh /opt/bin/start-selenium-standalone.sh > out.txt & | |
| #CMD ["python3", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |
| CMD ["/bin/sh", "/opt/app/run.sh"] | |
| #ENTRYPOINT ["sh", "/opt/app/run.sh"] |