Spaces:
Runtime error
Runtime error
| FROM python:3.10-slim | |
| RUN apt-get update && \ | |
| apt-get install -y \ | |
| bash \ | |
| git git-lfs \ | |
| wget curl procps \ | |
| htop vim nano unzip tmux | |
| WORKDIR /app | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| # All users can use /home/user as their home directory | |
| ENV HOME=/home/user | |
| RUN mkdir $HOME/.cache $HOME/.config \ | |
| && chmod -R 777 $HOME | |
| # Copy the current directory contents into the container at $HOME/app setting the owner to the user | |
| COPY --chown=user . $HOME/app | |
| WORKDIR $HOME/app | |
| # COPY --chown=user ./requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| RUN bash /data/OpenAgent/run_toolgen_service.sh >> /data/OpenAgent/log.txt 2>&1 & | |
| RUN bash /data/StableToolBench/run_stabletoolbench_service.sh >> /data/StableToolBench/log.txt 2>&1 & | |
| # COPY --chown=1000 ./ /app | |
| CMD ["python", "app.py"] |