Skip to content

Commit

Permalink
Reduce Docker image size (#36)
Browse files Browse the repository at this point in the history
* Remove all Chromium locales but en-US
* Size 506 MB => 436.6 MB
  • Loading branch information
ngosang authored Nov 19, 2020
1 parent 719b650 commit 29c84b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN printf "I am running on ${BUILDPLATFORM:-linux/amd64}, building for ${TARGETPLATFORM:-linux/amd64}\n$(uname -a)\n"

# Install packages
RUN apk add --no-cache chromium
# Install Chromium and remove all locales but en-US
RUN apk add --no-cache chromium && \
find /usr/lib/chromium/locales -type f ! -name 'en-US.*' -delete

# Copy CloudProxy code
USER node
Expand Down

0 comments on commit 29c84b1

Please sign in to comment.