borg-exporter
borg-exporter copied to clipboard
Docker image fails to build
[*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
With the following modifications I was able to get it to build and run:
- Amend Dockerfile to run instead
poetry install --only mainto 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