Spaces:
Runtime error
Runtime error
Download Dockerfile from dev-assistant/langserve: direct link, hf CLI and curl.
- Browser
- Download file 416 Bytes
-
https://huggingface.co/spaces/dev-assistant/langserve/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/dev-assistant/langserve/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/dev-assistant/langserve/resolve/main/Dockerfile
416 Bytes
| FROM python:3.11.6-slim | |
| RUN pip install --upgrade pip | |
| RUN pip install poetry==1.6.1 | |
| RUN poetry config virtualenvs.create false | |
| WORKDIR /code | |
| COPY ./pyproject.toml ./README.md ./poetry.lock* ./ | |
| RUN poetry install --no-interaction --no-ansi --no-root | |
| COPY ./app ./app | |
| RUN poetry install --no-interaction --no-ansi | |
| EXPOSE 7860 | |
| CMD exec uvicorn app.server:app --host 0.0.0.0 --port 7860 --root-path $PROXY_URL | |