Skip to content

Commit

Permalink
reduce image size
Browse files Browse the repository at this point in the history
  • Loading branch information
jveldboom committed Apr 19, 2017
1 parent 51d9537 commit 8adbc78
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
FROM ubuntu:latest
FROM alpine:latest

WORKDIR /opt/google

RUN apt-get update && \
apt-get install -y git build-essential libpng-dev libgflags-dev
RUN apk --no-cache add \
libpng-dev \
g++ \
git \
make

RUN git clone https://github.com/google/guetzli.git
ARG VERSION="v1.0.1"

# https://github.com/google/guetzli/issues/74
RUN cd guetzli && git checkout 95ba421
RUN git clone https://github.com/google/guetzli.git \
--branch "${VERSION}" \
--depth 1

RUN cd guetzli && make

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ Original | Processed with 85%
![Original](./samples/rose.jpg)<br>219 KB | ![Original](./samples/rose-out.png)<br> 103 KB

# TODO
- Reduce container image size. Likely do not need full Ubuntu image
- <strike>Reduce container image size. Likely do not need full Ubuntu image</strike>
- <strike>Add to Docker Hub for easier installation</strike>

0 comments on commit 8adbc78

Please sign in to comment.