Fix Docker image not building

It seems to copy the entire directory to the second container for some
reason and runs out of space.
This commit is contained in:
Asher 2019-09-12 17:24:59 -05:00
parent 7353be413c
commit dbe5f23e21
No known key found for this signature in database
GPG key ID: D63C1EF81242354A
2 changed files with 4 additions and 1 deletions

View file

@ -9,3 +9,4 @@ doc
LICENSE
README.md
node_modules
release

View file

@ -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