dockerfiles/imagemin/Dockerfile
Marc Cornellà 7ac4881609 Use `apk --no-cache' on alpine images (#144)
This enables us to remove the following patterns that required
a `rm -rf /var/cache/apk`:

- `apk update`
- `apk add --update`
- `apk add --update-cache`

Supported since alpine 3.3.
2016-06-06 03:40:20 +00:00

23 lines
404 B
Docker

# Run imagemin in a container:
#
# docker run --rm -it \
# -v /etc/localtime:/etc/localtime:ro \
# -v $HOME/Pictures:/root/Pictures \
# --entrypoint bash \
# jess/imagemin
#
FROM alpine
MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apk --no-cache add \
autoconf \
automake \
build-base \
file \
libpng-dev \
nasm \
nodejs \
&& npm install --global imagemin-cli
CMD [ "imagemin", "--help" ]