This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
rm -rf rootfs | |
mkdir rootfs | |
cd rootfs | |
mkdir -p bin etc dev dev/pts lib proc sys tmp usr var/run | |
touch etc/resolv.conf | |
cat /etc/passwd | head -1 > etc/passwd | |
cat /etc/group | head -1 > etc/group | |
ln -s lib lib64 | |
ln -s bin sbin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" | |
"strconv" |