File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM ubuntu :latest
1+ FROM alpine :latest
22
33WORKDIR /opt/google
44
5- RUN apt-get update && \
6- apt-get install -y git build-essential libpng-dev libgflags-dev
5+ RUN apk --no-cache add \
6+ libpng-dev \
7+ g++ \
8+ git \
9+ make
710
8- RUN git clone https://github.com/google/guetzli.git
11+ ARG VERSION= "v1.0.1"
912
10- # https://github.com/google/guetzli/issues/74
11- RUN cd guetzli && git checkout 95ba421
13+ RUN git clone https://github.com/google/guetzli.git \
14+ --branch "${VERSION}" \
15+ --depth 1
1216
1317RUN cd guetzli && make
1418
Original file line number Diff line number Diff line change @@ -15,5 +15,5 @@ Original | Processed with 85%
1515![ Original] ( ./samples/rose.jpg ) <br >219 KB | ![ Original] ( ./samples/rose-out.png ) <br > 103 KB
1616
1717# TODO
18- - Reduce container image size. Likely do not need full Ubuntu image
18+ - < strike > Reduce container image size. Likely do not need full Ubuntu image</ strike >
1919- <strike >Add to Docker Hub for easier installation</strike >
You can’t perform that action at this time.
0 commit comments