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

[Bug]: build env vars with spaces cannot be passed to docker #4679

Open
billythedummy opened this issue Dec 27, 2024 · 0 comments
Open

[Bug]: build env vars with spaces cannot be passed to docker #4679

billythedummy opened this issue Dec 27, 2024 · 0 comments
Labels
🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization.

Comments

@billythedummy
Copy link

Error Message and Logs

When attempting to use a env var as a build variable that's passed as a docker build arg, the deploy fails with:

ERROR: failed to solve: dockerfile parse error on line X: ARG names can not be blank

After deleting all spaces from the env var, it works fine.

Steps to Reproduce

  1. Try to build an image with a env var build var with spaces in the value

Example Dockerfile

ARG EXAMPLE=""

Then set env var EXAMPLE to some value with spaces in the coolify UI with "Build Variable?" checkbox checked.

Example Repository URL

No response

Coolify Version

v4.0.0-beta.373

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 22.04

Additional Information

No response

@billythedummy billythedummy added 🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization. labels Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization.
Projects
None yet
Development

No branches or pull requests

1 participant