Skip to content

Reduce image size #1283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions 14/alpine3.10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ RUN addgroup -g 1000 node \
&& apk del .build-deps \
# smoke tests
&& node --version \
&& npm --version
&& npm --version \
# remove unnecessary files
&& rm -rf \
/usr/local/lib/node_modules/npm/changelogs \
/usr/local/lib/node_modules/npm/man \
/usr/local/lib/node_modules/npm/docs

ENV YARN_VERSION 1.22.4

Expand All @@ -92,7 +97,10 @@ RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
&& apk del .build-deps-yarn \
# smoke test
&& yarn --version
&& yarn --version \
# remove unnecessary files
&& rm -rf \
/tmp/*

COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
Expand Down