spacy-server icon indicating copy to clipboard operation
spacy-server copied to clipboard

Can you update the documenation?

Open devSarry opened this issue 4 years ago • 1 comments

Can you please update the readme to reflect how to get started. What docker commands to use and how to pull the image.

The example posted on the spcay website gives an error

$ docker run --rm -dp 8080:8080 neelkamath/spacy-server
Unable to find image 'neelkamath/spacy-server:latest' locally
docker: Error response from daemon: manifest for neelkamath/spacy-server:latest
not found: manifest unknown: manifest unknown.
See 'docker run --help'.

Trying to build from the docker file gives another error

$ docker build -f docker/Dockerfile -t spacy .
[+] Building 0.1s (12/12) FINISHED
 => [internal] load build definition from Dockerfile                       0.0s
 => => transferring dockerfile: 32B                                        0.0s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 34B                                           0.0s
 => [internal] load metadata for docker.io/library/python:3.8              0.0s
 => [base 1/7] FROM docker.io/library/python:3.8                           0.0s
 => [internal] load build context                                          0.0s
 => => transferring context: 92B                                           0.0s
 => CACHED [base 2/7] WORKDIR /app                                         0.0s
 => CACHED [base 3/7] COPY requirements.txt .                              0.0s
 => CACHED [base 4/7] RUN pip install --no-cache-dir -r requirements.txt   0.0s
 => CACHED [base 5/7] RUN python -m spacy download                         0.0s
 => CACHED [base 6/7] COPY src/main.py src/main.py                         0.0s
 => CACHED [base 7/7] RUN useradd user                                     0.0s
 => ERROR [stage-1 1/1] COPY src/s2v_old/ src/s2v_old/                     0.0s
------
 > [stage-1 1/1] COPY src/s2v_old/ src/s2v_old/:
------
failed to compute cache key: "/src/s2v_old" not found: not found

devSarry avatar Nov 08 '21 18:11 devSarry

The spaCy website docs are outdated, yes. However, you needn't build the Docker image yourself. Clicking on the Usage section/link on the README takes you to the Docker Hub page that documents the commands along with examples.

neelkamath avatar Nov 17 '21 03:11 neelkamath