Skip to content

v0.24.0 unable to sync files when a WORKDIR is specified #1721

@janwillies

Description

@janwillies

with v0.24.0 I'm unable to sync files when a WORKDIR is specified in the Dockerfile.

Dockerfile:

WORKDIR /code/server

before sync

root@foo-759646f7db-24rb6:/code/server# find / -name externalAPIS.js
/code/server/externalAPIS.js

after sync

root@foo-759646f7db-24rb6:/code/server# find / -name externalAPIS.js
/code/server/code/server/externalAPIS.js
/code/server/externalAPIS.js

This happens regardless of skaffold configuration:

    sync:
      'server/*.js': /code/server
    sync:
      'server/*.js': .

when I revert #1709 WORKDIR is ignored and I have to specify the full path in skaffold.yaml:

    sync:
      'server/*.js': /code/server

but it works.

related #1691

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions