From 3a6e27bc87ab6dcf6fb69230fc361a6d520cf439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 13 Mar 2019 11:01:51 +0100 Subject: [PATCH] Combine apt-get in final docker image and remove cache --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 509d4f2d8..adaeb3d0c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,9 +23,10 @@ COPY --from=0 /src/packages/server/cli-linux-x64 /usr/local/bin/code-server EXPOSE 8443 RUN apt-get update && apt-get install -y \ openssl \ - net-tools -RUN apt-get install -y locales && \ - locale-gen en_US.UTF-8 + net-tools \ + locales && \ + locale-gen en_US.UTF-8 && \ + rm -rf /var/lib/apt/lists/* # We unfortunately cannot use update-locale because docker will not use the env variables # configured in /etc/default/locale so we need to set it manually. ENV LANG=en_US.UTF-8