Skip to content

Commit

Permalink
Optimize Dockerfile to improve image size
Browse files Browse the repository at this point in the history
  • Loading branch information
delitescere committed Sep 5, 2015
1 parent 825a82b commit 7a66905
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ RUN \
apk add --update bash && \
rm -rf /var/cache/apk/* && \
mkdir -p /usr/local/bin && \
adduser -D -g '' lein

RUN \
adduser -D -g '' lein && \
cd /usr/local/bin && \
wget "https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein" && \
chmod 0755 lein
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
## Introduction
This is a minimal Docker image for [leiningen](https://github.com/technomancy/leiningen) tasks. It is from [delitescere/jdk](https://hub.docker.com/r/delitescere/jdk/) on Docker Hub.

The pre-squashed size is 267 MB and after using [docker-squash](https://github.com/jwilder/docker-squash), it is just 186 MB.

This image is for development-time activities. You can run your packaged component in an image from [delitescere/java](https://hub.docker.com/r/delitescere/java/)) on Docker Hub (as long as you only need the JRE provided by "compact3" profile, which is likely).

## Build
Expand Down

0 comments on commit 7a66905

Please sign in to comment.