2015-05-14 01:33:24 +02:00
|
|
|
# Run imagemin in a container:
|
|
|
|
#
|
|
|
|
# docker run --rm -it \
|
2015-06-05 19:24:11 +02:00
|
|
|
# -v /etc/localtime:/etc/localtime:ro \
|
|
|
|
# -v $HOME/Pictures:/root/Pictures \
|
|
|
|
# --entrypoint bash \
|
|
|
|
# jess/imagemin
|
2015-05-14 01:33:24 +02:00
|
|
|
#
|
2015-07-27 07:40:32 +02:00
|
|
|
FROM alpine
|
2015-03-12 04:55:17 +01:00
|
|
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
|
|
|
|
2015-07-27 07:40:32 +02:00
|
|
|
RUN apk update && apk add \
|
|
|
|
autoconf \
|
|
|
|
automake \
|
|
|
|
build-base \
|
|
|
|
file \
|
|
|
|
libpng-dev \
|
|
|
|
nasm \
|
|
|
|
nodejs \
|
|
|
|
&& rm -rf /var/cache/apk/* \
|
|
|
|
&& npm install --global imagemin
|
2015-03-12 04:55:17 +01:00
|
|
|
|
2015-07-27 07:40:32 +02:00
|
|
|
CMD [ "imagemin", "--help" ]
|