Part 2 of Any language on Flisk. The Fastify example in the BYO doc is three files and a command. This is the same layout. The files are Goose's, because that is the language in the image.
services/shop/goose-api/ Dockerfile server.goose http.c goose-compiler/ # Linux build of the compiler, matching the image arch
Enter fullscreen mode
Exit fullscreen mode
Create that directory before flisk resource . A Dockerfile that already exists is kept.
Goose's own standard library can read PORT with os.env . It does not ship sockets. The stdlib says networking arrives as extern fn when a program needs it. That is application code, the same way Fastify's listen is application code.…