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

Docker files created by dartfn doesn't copy runtime files, causing launch to fail #282

Closed
weenzeel opened this issue Sep 13, 2021 · 3 comments

Comments

@weenzeel
Copy link

weenzeel commented Sep 13, 2021

Steps to reproduce ...

Run dartfn generate helloworld in a new folder.

As instructed by the README file in the generated test-project. Run commands ...

docker build -t hello .
docker run -it -p 8080:8080 --name app hello

This fails with the message: standard_init_linux.go:228: exec user process caused: no such file or directory

To fix the error, one needs to manually add the following line to the generated docker file:

COPY --from=0 /runtime/ /

Also, on a side note, the docker files created by dartfn differs in different ways from the docker files being present in the project example files directory. Could these versions of docker files be more aligned/kept in sync?

All the best!

@kevmoo
Copy link
Collaborator

kevmoo commented Sep 13, 2021

Duplicate of #268

@kevmoo kevmoo marked this as a duplicate of #268 Sep 13, 2021
@kevmoo kevmoo closed this as completed Sep 13, 2021
@kevmoo
Copy link
Collaborator

kevmoo commented Sep 13, 2021

This is now fixed – thanks to @subfuzion – update dartfn and you should be good to go!

@weenzeel
Copy link
Author

Awesome! Thanks for being so responsive. Dart on the server has great potential.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants