Menu

A Goose App in the Same Shape as the Fastify Example
📰

A Goose App in the Same Shape as the Fastify Example

DEV Community: docker·flisk·about 4 hours ago
#Km5F9Ise
#devtodocker#devto#dev#include#goose
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.