4 ms·
Ditch Golang and use a textfile containing the text "Hello world!" to bring it to 12 bytes.
by stavros 5mo ago
Ditch Golang and use a textfile containing the text "Hello world!" to bring it to 12 bytes.
- coolThingsFirst 5mo agoThat's not going to work, that's a static file. Golang gives you a web server as a staticly linked binary.
- stavros 5mo agoIf we're disregarding requirements, I figured I'd disregard some too. If the question is "I need to containerize my Node app, how do I make it small?" the answer can't be "don't containerize it and don't use Node".
- coolThingsFirst 5mo agoWhat problem does Docker solve which is fundamental? None. Zero. Zilch. I've used it two times and except burning dev time with its random BS has no benefit whatsoever. I guess if you run a 200K line app and working with 20 devs will make things slightly easier? On M1 launching the docker containers lagged the entire system. Trying to mount a volume caused issues. (known issue) The official web app advertisies it as multiplatform which it's not. Anything more complex than hello world become a nightmare on Docker. PM2 as process manager and simple bash scripts demolish Docker which sounds too good in theory but is half-baked in practice.
- sagarm 5mo agoSee your problem is Apple. Anything non-trivial becomes a nightmare on Apple. Apple sounds good in theory but is half-baked in practice. Just use Linux, and "containers" are a subprocess and bind mount. Mostly /s