GoogleCloudPlatform / functions-framework-dart

FaaS (Function as a service) framework for writing portable Dart functions
https://pub.dev/packages/functions_framework
Apache License 2.0
537 stars 54 forks source link

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

Closed weenzeel closed 3 years ago

weenzeel commented 3 years ago

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_initlinux.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 commented 3 years ago

Duplicate of #268

kevmoo commented 3 years ago

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

weenzeel commented 3 years ago

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