Hi, this is my first try to setup dagger. I start from this project with two tech (fastapi + nextjs)
https://vercel.com/templates/next.js/nextjs-fastapi-starter
I want to build the two image with tests, etc.
- Init with dagger init --sdk=python
- Create install step
class NextjsFastapi:
@function
async def install(self, source: dagger.Directory) -> dagger.Directory:
"""Install dependencies"""
return (
dag.container()
.from_("node:18-alpine")
.with_directory("/src", source)
.with_workdir("/src")
.with_exec(["npm", "install"])
.directory("/src")
)```
3. run install
dagger call install --source=.
It is still running after 5 minutes. it is stall at this point :
source: ✔ ModuleSource.resolveDirectoryFromCaller(path: "."): Directory!