dockerfiles/imagemin/Dockerfile

27 lines
497 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 node:alpine
MAINTAINER Jessie Frazelle <jess@linux.com>
2015-03-12 04:55:17 +01:00
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
2015-03-12 04:55:17 +01:00
CMD [ "imagemin", "--help" ]