2015-05-13 16:33:24 -07:00
|
|
|
# Run imagemin in a container:
|
|
|
|
#
|
|
|
|
# docker run --rm -it \
|
2015-06-05 10:24:11 -07:00
|
|
|
# -v /etc/localtime:/etc/localtime:ro \
|
|
|
|
# -v $HOME/Pictures:/root/Pictures \
|
|
|
|
# --entrypoint bash \
|
|
|
|
# jess/imagemin
|
2015-05-13 16:33:24 -07:00
|
|
|
#
|
2017-01-10 16:14:50 -08:00
|
|
|
FROM node:alpine
|
2017-03-09 18:14:37 +00:00
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
2015-03-11 20:55:17 -07:00
|
|
|
|
2016-06-06 05:40:20 +02:00
|
|
|
RUN apk --no-cache add \
|
2015-07-26 22:40:32 -07:00
|
|
|
file \
|
2017-01-10 16:14:50 -08:00
|
|
|
libpng
|
|
|
|
|
|
|
|
RUN set -x \
|
|
|
|
&& apk add --no-cache --virtual .build-deps \
|
|
|
|
autoconf \
|
|
|
|
automake \
|
|
|
|
build-base \
|
|
|
|
libpng-dev \
|
|
|
|
nasm \
|
|
|
|
&& npm install --global imagemin-cli \
|
|
|
|
&& apk del .build-deps
|
2015-03-11 20:55:17 -07:00
|
|
|
|
2015-07-26 22:40:32 -07:00
|
|
|
CMD [ "imagemin", "--help" ]
|