Skip to content

Commit dbe5f23

Browse files
committed
Fix Docker image not building
It seems to copy the entire directory to the second container for some reason and runs out of space.
1 parent 7353be4 commit dbe5f23

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ doc
99
LICENSE
1010
README.md
1111
node_modules
12+
release

Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ COPY . .
1616
RUN yarn \
1717
&& MINIFY=true yarn build "${vscodeVersion}" "${codeServerVersion}" \
1818
&& yarn binary "${vscodeVersion}" "${codeServerVersion}" \
19-
&& mv "/src/build/code-server${codeServerVersion}-vsc${vscodeVersion}-linux-x86_64-built/code-server${codeServerVersion}-vsc${vscodeVersion}-linux-x86_64" /src/build/code-server
19+
&& mv "/src/build/code-server${codeServerVersion}-vsc${vscodeVersion}-linux-x86_64-built/code-server${codeServerVersion}-vsc${vscodeVersion}-linux-x86_64" /src/build/code-server \
20+
&& rm -r /src/build/vscode-* \
21+
&& rm -r /src/build/code-server*-linux-*
2022

2123
# We deploy with ubuntu so that devs have a familiar environment.
2224
FROM ubuntu:18.04

0 commit comments

Comments
 (0)