Spaces:
Paused
Paused
Download Dockerfile from Dragdev/telegrambot: direct link, hf CLI and curl.
- Browser
- Download file 531 Bytes
-
https://huggingface.co/spaces/Dragdev/telegrambot/resolve/9b0693abed7f76aac40c00faec00dd3013577521/Dockerfile
- Command line
-
hf download hf://spaces/Dragdev/telegrambot@9b0693abed7f76aac40c00faec00dd3013577521/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Dragdev/telegrambot/resolve/9b0693abed7f76aac40c00faec00dd3013577521/Dockerfile
531 Bytes
| # Build virtualenv as separate step: Only re-execute this step when pyproject.toml or poetry.lock changes | |
| FROM build AS build-venv | |
| COPY pyproject.toml poetry.lock / | |
| RUN /venv/bin/poetry export -f requirements.txt --without-hashes --output requirements.txt | |
| RUN /venv/bin/pip install --disable-pip-version-check -r /requirements.txt | |
| # Copy the virtualenv into a distroless image | |
| FROM gcr.io/distroless/python3-debian11 | |
| WORKDIR /app | |
| COPY --from=build-venv /venv /venv | |
| COPY . . | |
| ENTRYPOINT ["/venv/bin/python3"] | |
| CMD ["-m", "Powers"] | |