| Size: 1025 Comment:  | Size: 1380 Comment:  | 
| Deletions are marked like this. | Additions are marked like this. | 
| Line 7: | Line 7: | 
| * https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/x86_64/alpine-standard-3.20.2-x86_64.iso * https://wiki.alpinelinux.org/wiki/Installation | |
| Line 19: | Line 20: | 
| cd ~/tmp/ mkdir AlpineTest | cd ~ mkdir -p ~/tmp/AlpineTest | 
| Line 22: | Line 23: | 
| echo -e "FROM alpine:3.20.2\nRUN apk add --update --no-cache python3 curl wget nano vim py3-pip\nCMD [\"cat\"]" > Dockerfile | |
| Line 25: | Line 27: | 
| docker stop env-docker-alpine-container docker system prune -a --volumes | |
| Line 29: | Line 33: | 
| FROM alpine:3.16 | FROM alpine:3.20.2 | 
Alpine
Alpine Linux is a security-oriented, lightweight Linux distribution based on musl libc and busybox.
- http://dl-cdn.alpinelinux.org/alpine/v3.12/releases/x86_64/alpine-standard-3.12.1-x86_64.iso 
- https://dl-cdn.alpinelinux.org/alpine/v3.15/releases/x86_64/alpine-standard-3.15.0-x86_64.iso 
- https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/x86_64/alpine-standard-3.20.2-x86_64.iso 
ISO size is 125MB.
Apk commands
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
