From dbe5f23e21a51ba0fc54c57e80eb12bc2737cb35 Mon Sep 17 00:00:00 2001 From: Asher Date: Thu, 12 Sep 2019 17:24:59 -0500 Subject: [PATCH] Fix Docker image not building It seems to copy the entire directory to the second container for some reason and runs out of space. --- .dockerignore | 1 + Dockerfile | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index 4cd3ce4f..cbfebc09 100644 --- a/.dockerignore +++ b/.dockerignore @@ -9,3 +9,4 @@ doc LICENSE README.md node_modules +release \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 761a7dc2..08c64284 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,9 @@ COPY . . RUN yarn \ && MINIFY=true yarn build "${vscodeVersion}" "${codeServerVersion}" \ && yarn binary "${vscodeVersion}" "${codeServerVersion}" \ - && mv "/src/build/code-server${codeServerVersion}-vsc${vscodeVersion}-linux-x86_64-built/code-server${codeServerVersion}-vsc${vscodeVersion}-linux-x86_64" /src/build/code-server + && mv "/src/build/code-server${codeServerVersion}-vsc${vscodeVersion}-linux-x86_64-built/code-server${codeServerVersion}-vsc${vscodeVersion}-linux-x86_64" /src/build/code-server \ + && rm -r /src/build/vscode-* \ + && rm -r /src/build/code-server*-linux-* # We deploy with ubuntu so that devs have a familiar environment. FROM ubuntu:18.04