Upgrade 12.5 to 12.7.1 -- Auto migrate - Dockerfile

Hi people, I hope you are ok!

I’m having a problem trying to upgrade to the last version.
I have botpress running into a docker… When a download the last image(v12_7_1) it’s says that I should use ./bp --auto-migrate.

I tried changing my Dockerfile using into mi CMD ./bp --auto-migrate but not work…

My Dockerfile:
FROM botpress/server:v12_7_1
WORKDIR /botpress
#EXPOSE 3000
CMD ["./bp --auto-migrate"]

I build my image:
$ docker build -t botpress-dev .
Sending build context to Docker daemon 3.072kB
Step 1/3 : FROM botpress/server:v12_7_1
v12_7_1: Pulling from botpress/server
32802c0cfa4d: Pull complete
da1315cffa03: Pull complete
fa83472a3562: Pull complete
f85999a86bef: Pull complete
0b5c4db96dfc: Pull complete
cbc2f26b980f: Pull complete
Digest: sha256:b7142a00f64e8eb2485bd93fb3b845c3bcb15e115e5470b52678080c2937cac6
Status: Downloaded newer image for botpress/server:v12_7_1
—> ac801d71d85f
Step 2/3 : WORKDIR /botpress
—> Running in 6cc74f8df726
Removing intermediate container 6cc74f8df726
—> e0f592cee92f
Step 3/3 : CMD ["./bp --auto-migrate"]
—> Running in 96adbe94dde4
Removing intermediate container 96adbe94dde4
—> cc5b0dabcb71
Successfully built cc5b0dabcb71
Successfully tagged botpress-dev:latest

And then when I try to run my container not work…
docker run --detach --name=botpress-dev --publish 3000:3000 --volume /home/data:/botpress/data botpress-dev
74c2b5412c3dd917d0b7a61eff2a515492f50afeb6dac2a648e659ef538b07c5
docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused “exec: “./bp --auto-migrate”: stat ./bp --auto-migrate: no such file or directory”: unknown.

What is wrong ? Any idea ?

Thanks

You can start Botpress with AUTO_MIGRATE=true like this:

AUTO_MIGRATE=true ./bp