Skip to content

Commit 8adbc78

Browse files
committed
reduce image size
1 parent 51d9537 commit 8adbc78

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

Dockerfile

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
FROM ubuntu:latest
1+
FROM alpine:latest
22

33
WORKDIR /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

1317
RUN cd guetzli && make
1418

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)