Skip to content

No module named 'webvirtcloud.settings',when run 'docker build.......'command #395

@lushtech

Description

@lushtech

The steps to reproduce the error

1 step: Run git clone

git clone https://github.com/retspen/webvirtcloud.git

2 step: Run docker build

sudo docker build -t mywebvirtcloud .
The error shows as blow when build running
`Step 11/19 : RUN . venv/bin/activate && python3 manage.py migrate && chown -R www-data:www-data /srv/webvirtcloud
---> Running in 290a72712f56
Traceback (most recent call last):
File "manage.py", line 21, in
main()
......

......

......
ModuleNotFoundError: No module named 'webvirtcloud.settings'
The command '/bin/sh -c . venv/bin/activate && python3 manage.py migrate && chown -R www-data:www-data /srv/webvirtcloud' returned a non-zero code: 1
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions