Originally posted by **DPBiff** June 30, 2024
I have tried to install Tracks several ways. I've managed to install it on my own linux box exactly one time. Ruby is very difficult. I have it running in a Turnkey appliance and it's great, but... I want to be able to access it from the cloud & can't becuse .. ISP. So I have a VPS i want to install it on. I'm following the instructions and can't get past the first step. This is what I get:
=> ERROR [27/28] COPY .git /app/.git 0.0s
------
> [27/28] COPY .git /app/.git:
------
Dockerfile:39
--------------------
37 | COPY db /app/db/
38 |
39 | >>> COPY .git /app/.git
40 |
41 | RUN RAILS_ENV=production bundle exec rake assets:precompile
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 75e4bac4-034c-4eb8-b7f2-22a96b33957d::810xvjt2hbr92ueqapobps4f4: "/.git": not found
VPS is runing Alma Linux 8, Docker is installed correctly... ?? Help?
.git is copied inside the image to show the Git version in the UI; however this won't work if one's using for example a version archive that doesn't have the .git directory.
Discussed in https://github.com/TracksApp/tracks/discussions/3027