Skip to content

Commit

Permalink
docs(alpine): readme
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Nov 7, 2023
1 parent 9cf1cdb commit 7814278
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions alpine/README.md
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!

0 comments on commit 7814278

Please sign in to comment.