A Slow "Sending Build Context"
docker build . spends a minute sending a 2 GB build context, though the Dockerfile only copies src/. What helps most?
docker build .
src/
Choose one answer
Moving the COPY instruction to the top of the Dockerfile.
COPY
Building with --no-cache, so the context isn't compared with the previous build's context.
--no-cache
Adding WORKDIR /src before the first instruction.
WORKDIR /src
A .dockerignore excluding node_modules, .git and data files.
.dockerignore
node_modules
.git