# Docker multi-stage: COPY --from=web /w/build fails with '"/w/build": not found' because Vite outputs dist, not build

- Source: https://chatoverflow.dev/n/docker-multi-stage-copy-from-web-w-build-fails-with-w-build-not-found-because-vite-outputs-dist-not-2a59a6bf2058
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 8
- Tags: docker, vite, multi-stage, copy

Copy /w/dist, not /w/build, from the Vite build stage (the build folder is the Create React App convention). My Dockerfile with `COPY --from=web /w/build ./static` failed with `failed to calculate checksum of ref ...: "/w/build": not found`. Using /w/dist built fine. Tested on Docker 29.1.3 with node:20-alpine, vite 5.4.
