Spaces:
Sleeping
Sleeping
Download Dockerfile from NatLibFi/Annif: direct link, hf CLI and curl.
- Browser
- Download file 320 Bytes
-
https://huggingface.co/spaces/NatLibFi/Annif/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/NatLibFi/Annif/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/NatLibFi/Annif/resolve/main/Dockerfile
320 Bytes
| FROM quay.io/natlibfi/annif:1.4 | |
| # Set up a new user named "user" with user ID 1000 | |
| USER root | |
| RUN useradd -m -u 1000 user | |
| # Switch to the "user" user | |
| USER user | |
| COPY --chown=user:user projects.d projects.d | |
| COPY --chown=user:user data/vocabs data/vocabs | |
| CMD ["gunicorn", "annif:create_app()", "--bind", "0.0.0.0:7860"] | |