Spaces:
Build error
Build error
Download Dockerfile from BookingCare/Search: direct link, hf CLI and curl.
- Browser
- Download file 672 Bytes
-
https://huggingface.co/spaces/BookingCare/Search/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/BookingCare/Search/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/BookingCare/Search/resolve/main/Dockerfile
672 Bytes
| FROM python:3.11.9 | |
| RUN apt update && apt install -y default-jdk | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PIPENV_VENV_IN_PROJECT=1 | |
| WORKDIR $HOME/app | |
| RUN --mount=type=secret,id=GITLAB_CREDENTIALS,mode=0444,required=true \ | |
| git clone "https://oauth2:$(cat /run/secrets/GITLAB_CREDENTIALS)@gitlab.com/bookingcare/search.git" -b dev . | |
| RUN python -m pip install --upgrade pip | |
| RUN pip install --user pipenv | |
| RUN echo 'export PATH="/home/user/.local/bin:$PATH"' >> $HOME/.bashrc | |
| RUN . $HOME/.bashrc | |
| RUN pipenv install | |
| EXPOSE 7860 | |
| CMD ["sh", "bin/hf-api-start.sh"] |