Spaces:
Running
Running
# app/Dockerfile | |
FROM python:3.9-slim | |
# Install git | |
RUN apt-get update && apt-get install -y \ | |
git \ | |
gcc \ | |
build-essential | |
RUN useradd -m -u 1000 user | |
USER user | |
ENV HOME=/home/user \ | |
PATH=/home/user/.local/bin:$PATH | |
WORKDIR $HOME/app | |
RUN --mount=type=secret,id=GH_TOKEN,mode=0444,required=true \ | |
git clone $(cat /run/secrets/GH_TOKEN) | |
RUN chmod 777 $HOME/app/andegpt-regbt | |
WORKDIR $HOME/app/andegpt-regbt | |
RUN pip3 install -r requirements.txt | |
EXPOSE 7860 | |
ENTRYPOINT ["streamlit", "run", "--client.showSidebarNavigation=False", "Main.py", "--server.port=7860", "--server.address=0.0.0.0"] |