Docker - linux container file structure
Posted on June 2, 2022
Tags: devops
1 root directory alpine linux
FROM alpine:3.14
1.1 /usr directory
apk add libc6-compat
printf 'GET /get HTTP/1.1\r\nHost:httpbin.org\r\n\r\n' | nc -v 127.0.0.1 5000
2 root directory golang:1.19
2.1 /usr directory
WORKDIR /usr/src/app
is typical docker config/usr/local/bin
is typically where we output our built binary