Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build from dockerfile does not recreate image after changes in dockerfile or its context. #547

Open
2 tasks done
neworld opened this issue Jun 15, 2024 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@neworld
Copy link

neworld commented Jun 15, 2024

⚠️ Please verify that this bug has NOT been reported before.

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

Images are not rebuilt upon deploy or update, if dockerfile was changed. However, I am not sure if this problem could be simply fixed without causing a negative effect on stacks without dockerfiles. In this case a button forcing --build is good enough solution

👟 Reproduction steps

Let's assume having such compose file:

services:
  my-dockerfile:
    build:
      context: .
      dockerfile: Dockerfile
    restart: unless-stopped

Docker file itself can be empty like:

FROM alpine:latest
  1. Deploy service
  2. change docker file
  3. deploy service

👀 Expected behavior

The image should rebuilt like using docker-compose up --build -d

😓 Actual Behavior

Only container recreated like using docker-compose up -d (without --build)

Dockge Version

1.4.2

💻 Operating System and Arch

Debian

🌐 Browser

Chrome

🐋 Docker Version

Docker version 20.10.24+dfsg1, build 297e128

🟩 NodeJS Version

No response

📝 Relevant log output

No response

@neworld neworld added the bug Something isn't working label Jun 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant