dockerfiles/imagemin/Dockerfile
Jess Frazelle 3c1634b3d0
fix py2
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-01-10 16:14:50 -08:00

27 lines
497 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 node:alpine
MAINTAINER Jessie Frazelle <jess@linux.com>
RUN apk --no-cache add \
file \
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
CMD [ "imagemin", "--help" ]