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

fix(node): Docker generator should work #23452

Merged
merged 1 commit into from
May 16, 2024
Merged

Conversation

ndcunningham
Copy link
Contributor

@ndcunningham ndcunningham commented May 16, 2024

Also fixes the unit tests for node package

Currently

When you generate a docker file using either the node generator or the node:setup-docker generator using inferred targets would create the DockerFile but the COPY command would be incorrect.

It would resemble something similar to

//...

COPY   acme 

//etc...

Expected

Now it generates the correct command.

//...

COPY dist/acme  acme/

//etc...

closes: #23365

@ndcunningham ndcunningham requested a review from a team as a code owner May 16, 2024 17:08
@ndcunningham ndcunningham requested a review from jaysoo May 16, 2024 17:08
Copy link

vercel bot commented May 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview May 16, 2024 5:59pm

@ndcunningham ndcunningham self-assigned this May 16, 2024
Also fixes the unit tests for node package

closes: #23365
@ndcunningham ndcunningham merged commit 1b7cf42 into master May 16, 2024
6 checks passed
@ndcunningham ndcunningham deleted the fix/node-docker-generator branch May 16, 2024 21:15
FrozenPandaz pushed a commit that referenced this pull request May 21, 2024
Also fixes the unit tests for node package

## Currently

When you generate a docker file using either the node generator or the
node:setup-docker generator using inferred targets would create the
DockerFile but the COPY command would be incorrect.

It would resemble something similar to
```
//...

COPY   acme

//etc...

```

## Expected

Now it generates the correct command.

```
//...

COPY dist/acme  acme/

//etc...

```

closes: #23365
(cherry picked from commit 1b7cf42)
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@nx/node:setup-docker generator produces invalid Dockerfile
3 participants