dockerfiles/imagemin/Dockerfile

24 lines
437 B
Docker
Raw Normal View History

# 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
2015-03-12 04:55:17 +01:00
MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apk update && apk add \
autoconf \
automake \
build-base \
file \
libpng-dev \
nasm \
nodejs \
&& rm -rf /var/cache/apk/* \
&& npm install --global imagemin-cli
2015-03-12 04:55:17 +01:00
CMD [ "imagemin", "--help" ]