Mos update error

Hi there,

I´m working on a docker-arm image for the mos tool following the wiki. But every time I try update it fails:

Error: rename /go/src/mongoose-os/mos/mos /go/src/mongoose-os/mos/mos.bak: invalid argument
I tried updating golang:
go
go version go1.12.4 linux/arm

And I suspect that is also messing with filemanagement on the esp32. But can’t really tell if it’s more related to my inexperience.

Any tips?

Thanks in advance,

Dockerfile (WiP)------------------

FROM golang
RUN apt update
RUN apt install -y apt-utils 
RUN apt install -y build-essential 
RUN apt install -y git 
RUN apt install -y python3 libusb-1.0 
RUN apt install -y libftdi-dev python-git
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/mongoose-os/mos /go/src/mongoose-os
WORKDIR /go/src/mongoose-os
RUN make deps
RUN make
EXPOSE 1992
CMD ["/go/bin/mos", "ui", "--http-addr", "0.0.0.0:1992"]