Skip to content

Commit 29c84b1

Browse files
authored
Reduce Docker image size (#36)
* Remove all Chromium locales but en-US * Size 506 MB => 436.6 MB
1 parent 719b650 commit 29c84b1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ ARG TARGETPLATFORM
55
ARG BUILDPLATFORM
66
RUN printf "I am running on ${BUILDPLATFORM:-linux/amd64}, building for ${TARGETPLATFORM:-linux/amd64}\n$(uname -a)\n"
77

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

1112
# Copy CloudProxy code
1213
USER node

0 commit comments

Comments
 (0)