everyone. I’m having a problem with Docker, I want my backend application to run through Docker, but I’m always getting the same error.
enter image description here
I defined my docker image like this
`FROM python:3.10
WORKDIR /app
COPY requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt
COPY . /app
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]`
I don’t find the error because my directory is organized the way it should be.
|- src |- assets |- images |- apple - apple.png |- asus - asus.png |- Dell - Dell.png |- lenovo - lenovo.png |- backend |- app |- database |- models - models.py - database.py |- routers - getdomain.py - getregister.py - getlogin.py - index.py - cadastro_ativos.py - controle.py - not_ring.py - prediction_st.py |- env |- media |- profile_pictures - main.py - requirements.txt
Can someone help me?
Problem finding the main module
felipecastroo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.