Update the Alpine examples (versions and built image sizes)
This commit is contained in:
parent
7d0b738d4f
commit
3fc7938482
|
|
@ -11,22 +11,22 @@
|
||||||
Use like you would any other base image:
|
Use like you would any other base image:
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM alpine:3.3
|
FROM alpine:3.5
|
||||||
RUN apk add --no-cache mysql-client
|
RUN apk add --no-cache mysql-client
|
||||||
ENTRYPOINT ["mysql"]
|
ENTRYPOINT ["mysql"]
|
||||||
```
|
```
|
||||||
|
|
||||||
This example has a virtual image size of only 16 MB. Compare that to our good friend Ubuntu:
|
This example has a virtual image size of only 36.5MB. Compare that to our good friend Ubuntu:
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM ubuntu:14.04
|
FROM ubuntu:16.04
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y mysql-client \
|
&& apt-get install -y --no-install-recommends mysql-client \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
ENTRYPOINT ["mysql"]
|
ENTRYPOINT ["mysql"]
|
||||||
```
|
```
|
||||||
|
|
||||||
This yields us a virtual image size of about 232 MB image.
|
This yields us a virtual image size of about 184MB image.
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue