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
|
|
|
#
|
2017-01-11 01:14:50 +01:00
|
|
|
FROM node:alpine
|
2016-09-20 00:25:05 +02:00
|
|
|
MAINTAINER Jessie Frazelle <jess@linux.com>
|
2015-03-12 04:55:17 +01:00
|
|
|
|
2016-06-06 05:40:20 +02:00
|
|
|
RUN apk --no-cache add \
|
2015-07-27 07:40:32 +02:00
|
|
|
file \
|
2017-01-11 01:14:50 +01: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-12 04:55:17 +01:00
|
|
|
|
2015-07-27 07:40:32 +02:00
|
|
|
CMD [ "imagemin", "--help" ]
|