-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,28 @@ | ||
# Alwatr Alpine Container | ||
|
||
The unofficial docker container image for Alpine Linux. The image is only 5MB and has access to a package repository that is much more featureful than other BusyBox based images. | ||
|
||
## Usage | ||
|
||
### Stop doing this | ||
|
||
```dockerfile | ||
FROM ubuntu:22.04 | ||
RUN apt-get update -q \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -qy mysql-client \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt | ||
ENTRYPOINT ["mysql"] | ||
``` | ||
|
||
This took **28s** to build and yields a **169MB** image! | ||
|
||
### Start doing this | ||
|
||
```dockerfile | ||
FROM alpine:3.16 | ||
RUN apk add --no-cache mysql-client | ||
ENTRYPOINT ["mysql"] | ||
``` | ||
|
||
Only **4s** to build and results in a **41MB** image! |