diff --git a/CHANGELOG.md b/CHANGELOG.md index a4efdc7..bb8b25b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +### [1.1.2] - 2019/04/18 +- Slim down the Docker image, from 102MB to 67MB, gaining 35MB, reducing size by 34%. ### [1.1.1] - 2019/04/18 - Because of the infinite-seaf-cli-start loop, within the container was running many seaf-daemons. Now, the infinite loop stop the current seaf-daemon before starting it again. (see #3) ## [1.1.0] - 2019/04/09 diff --git a/Dockerfile b/Dockerfile index f828658..56d653f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -FROM debian:jessie +FROM debian:jessie-slim # Prevent the packages installation to halt. ENV DEBIAN_FRONTEND noninteractive @@ -26,8 +26,20 @@ COPY assets/seafile.list /etc/apt/sources.list.d/ COPY utils/build/import-seafile-apt-key.sh / RUN /bin/bash /import-seafile-apt-key.sh ;\ apt-get update ;\ - apt-get install -o Dpkg::Options::="--force-confold" -y seafile-cli supervisor -RUN rm -f /import-seafile-apt-key.sh + apt-get install \ + -o Dpkg::Options::="--force-confold" \ + -y \ + seafile-cli \ + supervisor ;\ + apt-get clean ;\ + apt-get autoclean \ + -o APT::Clean-Installed=true ;\ + rm \ + -f \ + /var/log/fsck/*.log \ + /var/log/apt/*.log \ + /var/cache/debconf/*.dat-old \ + /import-seafile-apt-key.sh # Create the seafile client user. ENV UNAME=seafuser diff --git a/README.md b/README.md index bc2557d..7851453 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![1.1.1 build status](https://gitlab.com/flwgns-docker/seafile-client/badges/1.1.1/pipeline.svg)](https://gitlab.com/flwgns-docker/seafile-client/commits/1.1.1) +[![1.1.2 build status](https://gitlab.com/flwgns-docker/seafile-client/badges/1.1.2/pipeline.svg)](https://gitlab.com/flwgns-docker/seafile-client/commits/1.1.2) [![Docker pulls](https://img.shields.io/docker/pulls/flowgunso/seafile-client.svg)](https://hub.docker.com/r/flowgunso/seafile-client) [![Licensed under GPLv3](https://img.shields.io/badge/License-GPLv3-red.svg)](https://www.gnu.org/licenses/gpl-3.0) [![@gitlab.com/flwgns-docker/seafile-client](https://img.shields.io/badge/Source%20code-GitLab-red.svg)](https://gitlab.com/flwgns-docker/seafile-client/) @@ -11,21 +11,22 @@ Permanent stable releases will not be built again. You can rely on the weekly stable releases. They are stable. ## Weekly stable releases. -[`1`](https://gitlab.com/flwgns-docker/seafile-client/tags/1.1.1), -[`1.1`](https://gitlab.com/flwgns-docker/seafile-client/tags/1.1.1), -[`1.1.1`](https://gitlab.com/flwgns-docker/seafile-client/tags/1.1.1), -[`latest`](https://gitlab.com/flwgns-docker/seafile-client/tags/1.1.1) -(see tag/release [1.1.1](https://gitlab.com/flwgns-docker/seafile-client/tags/1.1.1)) +[`1`](https://gitlab.com/flwgns-docker/seafile-client/tags/1.1.2), +[`1.1`](https://gitlab.com/flwgns-docker/seafile-client/tags/1.1.2), +[`1.1.2`](https://gitlab.com/flwgns-docker/seafile-client/tags/1.1.2), +[`latest`](https://gitlab.com/flwgns-docker/seafile-client/tags/1.1.2) ## Permanent stable releases. -None at the moment. +[`1.1.1`](https://gitlab.com/flwgns-docker/seafile-client/tags/1.1.1): +Release previous to the slim down. Image is larger than 100MB. ## Developmental releases. -[`staging`](https://gitlab.com/flwgns-docker/seafile-client/tree/staging) -(see branch [staging](https://gitlab.com/flwgns-docker/seafile-client/tree/staging)) +[`staging`](https://gitlab.com/flwgns-docker/seafile-client/tree/staging): +The purpose of this release is to test feature and make them available to anyone. ## Obsolete releases. -[`1.1.0`](https://gitlab.com/flwgns-docker/seafile-client/tags/1.1.0) see [issue #3](https://gitlab.com/flwgns-docker/seafile-client/issues/3). +[`1.1.0`](https://gitlab.com/flwgns-docker/seafile-client/tags/1.1.0) +see [issue #3](https://gitlab.com/flwgns-docker/seafile-client/issues/3). [`1.0`](https://gitlab.com/flwgns-docker/seafile-client/tags/1.0.6) and it's revision [`1.0.6`](https://gitlab.com/flwgns-docker/seafile-client/tags/1.0.6),