mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 19:32:30 +01:00
f2b0d9ce8a
Signed-off-by: Jessica Frazelle <princess@docker.com>
24 lines
433 B
Docker
24 lines
433 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 alpine
|
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
|
|
|
RUN apk update && apk add \
|
|
autoconf \
|
|
automake \
|
|
build-base \
|
|
file \
|
|
libpng-dev \
|
|
nasm \
|
|
nodejs \
|
|
&& rm -rf /var/cache/apk/* \
|
|
&& npm install --global imagemin
|
|
|
|
CMD [ "imagemin", "--help" ]
|