I am new to Docker and Docker-compose. I built dockerfile and docker-compose.yml to run my flask hello world. But after I change app.py, and docker-compose up, it didn't reflect my code changes.
Dockerfile:
FROM ubuntu:latest
RUN apt-get update -y
RUN apt-get install -y python-pip python-dev build-essential && \
pip install flask PyMySQL pandas pymysql sqlalchemy
COPY . /app
WORKDIR /app
ENTRYPOINT ["python", "app.py"]
Docker-compose.yml:
version: '3'
services:
web:
build: ./web
volumes:
- .:/tmp
ports:
- "5000:5000"
Please help me. I just want my code changes automatically reflected.
Best