Missing version when using with docker compose

Hi gitea community.

First of all thanks for your support and for gitea, I’m very happy for the latest release v1.5.1.

I use gitea for my personal projects and I’ve installed it in my company too. For my personal instance I use docker-compose and for my company we install from git tags.

I’ve noticed tha the version label in the footer is different when using docker-compose or git tags and this happens with v1.5.0 and v1.5.1, I don’t know the behaviour for older releases.

In my personal instance I see Gitea Version: 38d8b8c but in my company I see Gitea Version: 1.5.1.

I reported this here because I consider this is not an important bug.
The configuration I’m using for docker compose is:

version: "3"

    external: true

    image: gitea/gitea:1.5.1
      - USER_UID=1000
      - USER_GID=1000
    restart: always
      - ./gitea:/data
      - ""
      - "222:22"
      - arvisoft

IIRC version display in footer was one of the items addressed in the 1.5.1 release. Could it be Docker was built before the commit sha was tagged?