I tried to copy a local file (a .vimrc file) to a Docker Alpine image.
Alpine's root directory seems to be called ~. (which is kinda odd, since ~ is usually home in the Debian world)
And the init.vim file needs to be in root/~.
I've tried different methods, i.e. the COPY command and RUN cp ....
But the ~/.config/nvim folder remains empty.
(the mkdir commands work)
I was able to copy into home/.config/nvim, but the file does not have an effect in there it needs to be in ~.
Is the root directory read only (even for root user) in Alpine?
FROM alpine
RUN apk add neovim
RUN apk add neovim-doc
RUN mkdir ~/.config
RUN mkdir ~/.config/nvim
ADD init.vim ~/.config/nvim/