mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
7eea00edf3
Signed-off-by: Michael Käufl <dockerfiles@c.michael-kaeufl.de>
27 lines
505 B
Docker
27 lines
505 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
|
|
LABEL 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" ]
|