You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A dockerfile utilizing the COPY --parents ..... instruction should properly detect a list of files that are dependencies and rebuild on change when running skaffold dev
Actual behavior
running skaffold dev builds once but does not detect any changes so it never rebuilds again (even on sequential runs of skaffold dev)
Information
Dockerfile
# syntax=docker/dockerfile:1.7-labs
FROM golang:1.20 AS build-stage
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY --parents ./vendor go.mod go.sum ./
COPY --parents ./**/*.go ./
RUN CGO_ENABLED=0 GOOS=linux go build -o /binary /app/cmd/main.go
# Deploy the application binary into a lean image
FROM gcr.io/distroless/base-debian11 AS build-release-stage
WORKDIR /
COPY --from=build-stage /binary /binary
USER nonroot:nonroot
ENTRYPOINT ["/binary"]
DEBU[0006] Found dependencies for dockerfile: [all go files that are one directory level down, not recursively down (ex /cmd/main.go is listed but /cmd/pkg/dependency.go is not]
dependencies work just fine (but then I am bringing a lot of unnecessary files into the build context and triggering rebuilds even when code isn't changjng)
The text was updated successfully, but these errors were encountered:
Expected behavior
A dockerfile utilizing the
COPY --parents .....
instruction should properly detect a list of files that are dependencies and rebuild on change when runningskaffold dev
Actual behavior
running
skaffold dev
builds once but does not detect any changes so it never rebuilds again (even on sequential runs ofskaffold dev
)Information
Dockerfile
v2.11.0
Amazon Linux 2023
Steps to reproduce the behavior
skaffold dev
Debug logging
There is a line after `Watching for changes
If I replace
with
dependencies work just fine (but then I am bringing a lot of unnecessary files into the build context and triggering rebuilds even when code isn't changjng)
The text was updated successfully, but these errors were encountered: