borg-exporter icon indicating copy to clipboard operation
borg-exporter copied to clipboard

Docker image fails to build

Open jinnatar opened this issue 3 years ago • 1 comments

[*snip*]
Step 7/9 : RUN poetry install
 ---> Running in 152d259ac155
Skipping virtualenv creation, as specified in config file.
Installing dependencies from lock file

Because borg-exporter depends on pytest-celery (^0.0.0-alpha.1) which doesn't match any versions, version solving failed.
The command '/bin/sh -c poetry install' returned a non-zero code: 1

jinnatar avatar Sep 10 '22 15:09 jinnatar

With the following modifications I was able to get it to build and run:

  • Amend Dockerfile to run instead poetry install --only main to skip dev dependencies that are causing the issue
  • poetry add pyinstaller^4.0 # it's only added as a dev dependency, which isn't strictly true
  • poetry add py # generated dist depends on it

jinnatar avatar Sep 10 '22 15:09 jinnatar