Specified version in Dockerfile not working

Hello community,

I'm newbie to docker. I have two Dockerfiles like below.

Dockerfile
Dockerfile.local

To upgrade my self-hosted retool to the specific version, which one should I edit like below?

FROM tryretool/backend:X.Y.Z

Actually I edited Dockerfile only and I got upgraded to the latest, so I was wondering that should I change both or just Dockerfile.local?

Thanks!

Hey @padam! You only need to change one, whichever is specified in your docker-compose.yml file.

You can change the value in that file to specify which Dockerfile you want to use. They should be identical, other than the Retool version values that you change. I'd recommend just using the Dockerfile and making sure the docker-compose.yml file references that but either should work.