I have a multistage Dockerfile for a small Jekyll site.
Dockerfile:
FROM jekyll/minimal AS build
COPY . /srv/jekyll
RUN jekyll build
FROM pierrezemb/gostatic
COPY --from=build /srv/jekyll/_site /srv/http
Docker fails at the last stage, with the following error:
Step 5/5 : COPY --from=build /srv/jekyll/_site /srv/http
COPY failed: stat /var/lib/docker/overlay2/e6b407b63b9578dd7ae4ccba968fff3f4e28e35e50e887c09319b32ccd548356/merged/srv/jekyll/_site: no such file or directory
If I remove the second FROM and exec into the build container, I can see the files exist in /srv/jekyll/_site.