dart-lang / dart-docker

Docker images for the Dart programming language (https://dart.dev)
BSD 3-Clause "New" or "Revised" License
67 stars 15 forks source link

Changes in my source code are not included when rebuilding Docker container #89

Closed warcayac closed 2 years ago

warcayac commented 2 years ago

I've made changes to my source code (for my Dart API server) but when rebuilding its Docker container (docker-compose up -d dartserver), those changes are not shown. It seems the original source code is not rebuilt. Am I missing something?

I've run my Dart server from my IDE with Postman and all is OK, my problem is when rebuilding my Dart container.

I've not modified Dockerfile file found in my Dart project.

I thought it is maybe a problem with Git so I deleted .git directory with same result.

subfuzion commented 2 years ago

Hi @warcayac. Images aren't automatically rebuilt with docker compose up. When you make changes to the build context (such as when you edit source code), you need to run docker compose build. See https://docs.docker.com/compose/reference/build/