Alpine

Alpine Linux is a security-oriented, lightweight Linux distribution based on musl libc and busybox.

ISO size is 125MB.

Apk commands

   1 apk update # update package list/db
   2 apk search # show available packages
   3 apk info # show installed packages
   4 apk add --update --no-cache openjdk21 # install openjdk21
   5 apk add --update --no-cache maven

Docker

   1 cd ~
   2 mkdir -p ~/tmp/AlpineTest
   3 cd AlpineTest/
   4 echo -e "FROM alpine:3.20.2\nRUN apk add --update --no-cache python3 curl wget nano vim py3-pip\nCMD [\"cat\"]" > Dockerfile
   5 docker build -t env-docker-alpine-image . 
   6 docker run -p 8081:8081 -d -it --rm --name env-docker-alpine-container --mount type=bind,source="$(pwd)",target=/app env-docker-alpine-image
   7 docker exec -it env-docker-alpine-container sh
   8 docker stop env-docker-alpine-container 
   9 docker system prune -a --volumes

Dockerfile

   1 FROM alpine:3.20.2
   2 RUN apk add --update --no-cache python3 curl wget nano vim py3-pip
   3 CMD ["cat"]

Alpine (last edited 2024-07-26 21:34:32 by vitor)