Download Dockerfile from azils3/n: direct link, hf CLI and curl.
- Browser
- Download file 639 Bytes
-
https://huggingface.co/spaces/azils3/n/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/azils3/n/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/azils3/n/resolve/main/Dockerfile
639 Bytes
| FROM python:3.10.13-alpine3.18 | |
| ENV POETRY_NO_INTERACTION=1 \ | |
| POETRY_VIRTUALENVS_IN_PROJECT=1 \ | |
| POETRY_VIRTUALENVS_CREATE=0 \ | |
| POETRY_HOME="/etc/poetry" \ | |
| POETRY_CACHE_DIR="/tmp/poetry_cache" \ | |
| POETRY_VERSION=1.8.3 | |
| WORKDIR /usr/src/app | |
| COPY . . | |
| RUN pip install --no-cache-dir "poetry==$POETRY_VERSION" \ | |
| && poetry install --without admin --without dev --no-root \ | |
| && pip uninstall -y poetry \ | |
| && pybabel compile -d bot/locales \ | |
| && rm -rf /home/appuser/.cache \ | |
| && rm -rf $POETRY_CACHE_DIR \ | |
| && adduser -D appuser \ | |
| && chown -R appuser:appuser . | |
| USER appuser | |
| CMD ["python", "-m", "bot"] | |