Size: 458
Comment:
|
Size: 904
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 14: | Line 14: |
== Virtualbox == | == Docker == {{{#!highlight bash cd ~/tmp/ mkdir AlpineTest cd AlpineTest/ docker build -t env-docker-alpine-image . docker run -p 8081:8081 -d -it --rm --name env-docker-alpine-container --mount type=bind,source="$(pwd)",target=/app env-docker-alpine-image docker exec -it env-docker-alpine-container sh }}} === Dockerfile === {{{#!highlight bash FROM alpine:3.12 RUN apk add --update --no-cache python3 curl wget nano vim CMD ["cat"] }}} |
Alpine
Alpine Linux is a security-oriented, lightweight Linux distribution based on musl libc and busybox.
ISO size is 125MB.
Commands
- apk update # update package list/db
- apk search # show available packages
- apk info # show installed packages
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.12
2 RUN apk add --update --no-cache python3 curl wget nano vim
3 CMD ["cat"]