Skip to content

Problem installing with Docker using Dockerfile. #6

@NightZpy

Description

@NightZpy
FROM python:3.6

RUN mkdir -p /usr/src/app
COPY . /usr/src/app
WORKDIR /usr/src/app

RUN pip install --no-cache-dir -r requirements.txt
RUN pip install sqlalchemy-seeder

#Run Microservice

EXPOSE 8080
CMD ["python", "main.py"]

After build container, when I run:

Traceback (most recent call last):
  File "manage.py", line 4, in <module>
    from sqlalchemyseeder import ResolvingSeeder
ModuleNotFoundError: No module named 'sqlalchemyseeder'
Traceback (most recent call last):
  File "manage.py", line 4, in <module>
    from sqlalchemyseeder import ResolvingSeeder
ModuleNotFoundError: No module named 'sqlalchemyseeder'

What's is the problem, why doesn't found the module after install?

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