Size: 1025
Comment:
|
Size: 1074
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 7: | Line 7: |
* https://wiki.alpinelinux.org/wiki/Installation |
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
ISO size is 125MB.
Apk commands
Toggle line numbers
1 apk update # update package list/db
2 apk search # show available packages
3 apk info # show installed packages
4
Docker
Toggle line numbers
1 cd ~/tmp/
2 mkdir AlpineTest
3 cd AlpineTest/
4 docker build -t env-docker-alpine-image .
5 docker run -p 8081:8081 -d -it --rm --name env-docker-alpine-container --mount type=bind,source="$(pwd)",target=/app env-docker-alpine-image
6 docker exec -it env-docker-alpine-container sh
Dockerfile
Toggle line numbers
1 FROM alpine:3.16
2 RUN apk add --update --no-cache python3 curl wget nano vim py3-pip
3 CMD ["cat"]