My application creates files and in my test I check whether the creation was successful or not. with go test everything is fine, but with the containerised build I get the error of
read-only file system
I tried it with setting the mount to "bind"
FROM base AS unit-test RUN --mount=target=. \ --mount=type=bind,target=/root/.cache/go-build \ go test -v .
but without success.
Any hints for me?
My application creates files and in my test I check whether the creation was successful or not. with
go testeverything is fine, but with the containerised build I get the error ofread-only file system
I tried it with setting the mount to "bind"
FROM base AS unit-test RUN --mount=target=. \ --mount=type=bind,target=/root/.cache/go-build \ go test -v .but without success.
Any hints for me?