serve
serve copied to clipboard
Docker build for dev image failing
ubuntu@ip-172-31-24-228:/tmp/serve/docker$ DOCKER_BUILDKIT=1 docker build --no-cache --file Dockerfile_dev.cpu -t torchserve:dev .
[+] Building 1.9s (11/20)
=> [internal] load build definition from Dockerfile_dev.cpu 0.0s
=> => transferring dockerfile: 1.81kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> resolve image config for docker.io/docker/dockerfile:experimental 0.7s
=> CACHED docker-image://docker.io/docker/dockerfile:experimental@sha256:de85b2f3a3e8a2f7fe48e8e84a65f6fdd5cd5183afa6412fff9caa6871649c44 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:18.04 0.0s
=> CACHED [stage-0 1/14] FROM docker.io/library/ubuntu:18.04 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 461B 0.0s
=> CANCELED [stage-0 2/14] RUN --mount=type=cache,id=apt-dev,target=/var/cache/apt apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-in 0.6s
=> CACHED [stage-0 3/14] RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1 0.0s
=> CACHED [stage-0 4/14] RUN update-alternatives --install /usr/local/bin/pip pip /usr/local/bin/pip3 1 0.0s
=> ERROR [stage-0 5/14] ADD serve serve 0.0s
------
> [stage-0 5/14] ADD serve serve:
------
failed to solve with frontend dockerfile.v0: failed to solve with frontend gateway.v0: rpc error: code = Unknown desc = failed to build LLB: failed to compute cache key: "/serve" not found: not found
@maaquib Looks like, one of the prerequisites steps which say 'ensure you are in serve/docker' has been missed out. Anyways, now I have made that step explicit. Also, all the links in that doc were broken hence fixed those as well.