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:
parent
7353be413c
commit
dbe5f23e21
@ -9,3 +9,4 @@ doc
|
|||||||
LICENSE
|
LICENSE
|
||||||
README.md
|
README.md
|
||||||
node_modules
|
node_modules
|
||||||
|
release
|
@ -16,7 +16,9 @@ COPY . .
|
|||||||
RUN yarn \
|
RUN yarn \
|
||||||
&& MINIFY=true yarn build "${vscodeVersion}" "${codeServerVersion}" \
|
&& MINIFY=true yarn build "${vscodeVersion}" "${codeServerVersion}" \
|
||||||
&& yarn binary "${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.
|
# We deploy with ubuntu so that devs have a familiar environment.
|
||||||
FROM ubuntu:18.04
|
FROM ubuntu:18.04
|
||||||
|
Loading…
Reference in New Issue
Block a user