ERROR: Unable to read database state: No such file or directory
Please try splitting this line:

RUN apk add git &amp;&amp; git clone https://github.com/s0md3v/Photon.git Photon

into two:

RUN apk add git

RUN git clone https://github.com/s0md3v/Photon.git Photon


This will tell you exactly which piece of the command fails. If it is the apk add git part maybe try this: RUN apk update &amp;&amp; apk add git.

Also you may fixing to a specific tag in the FROM python:3-alpine as 3-alpine follows the latest alpine release which may have some unknown/unfixed issues.

See https://hub.docker.com/_/python/ for available tags.