I get acquainted with the technology of containerization. And there is a problem, after changing the project code, you need to update the contents of the container. I watched different articles, like I’m doing everything right. Dockerfile

# base image FROM python:3.7 # Set environment variables ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUFFERED 1 # Set work directory RUN mkdir /code WORKDIR /code # Install dependencies RUN pip3 install --upgrade pip RUN pip3 install pipenv # Copy Pipfile at the project COPY ./Pipfile /code/Pipfile # Install packages RUN pipenv install --system --deploy --skip-lock --dev # Copy all code at the project COPY . /code/ 

docker-compose.yaml

 version: '3' services: db: image: postgres environment: POSTGRES_PASSWORD: pass POSTGRES_USER: user web: restart: always build: . volumes: - ./code/src command: > bash -c "python3.7 src/manage.py migrate && python3.7 src/manage.py loaddata dump_bd.json && python3.7 src/manage.py runserver 0.0.0.0:8000" ports: - "8000:8000" depends_on: - db 

After updating the project code, nothing happens.

    0