From 2458cde498b6465f2f60158ed414d9c5c9c34222 Mon Sep 17 00:00:00 2001 From: Asher Date: Mon, 21 Oct 2019 12:25:18 -0500 Subject: [PATCH] Update source & build paths in Dockerfile --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 809b444..f47711b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,9 +17,9 @@ COPY . . RUN yarn \ && MINIFY=true GITHUB_TOKEN="${githubToken}" yarn build "${vscodeVersion}" "${codeServerVersion}" \ && yarn binary "${vscodeVersion}" "${codeServerVersion}" \ - && mv "/src/binaries/code-server${codeServerVersion}-vsc${vscodeVersion}-linux-x86_64" /src/build/code-server \ - && rm -r /src/build/vscode-* \ - && rm -r /src/build/code-server*-linux-* + && mv "/src/binaries/code-server${codeServerVersion}-vsc${vscodeVersion}-linux-x86_64" /src/binaries/code-server \ + && rm -r /src/build \ + && rm -r /src/source # We deploy with ubuntu so that devs have a familiar environment. FROM ubuntu:18.04 @@ -54,7 +54,7 @@ WORKDIR /home/coder/project # mount. So that they do not lose their data if they delete the container. VOLUME [ "/home/coder/project" ] -COPY --from=0 /src/build/code-server /usr/local/bin/code-server +COPY --from=0 /src/binaries/code-server /usr/local/bin/code-server EXPOSE 8080 ENTRYPOINT ["dumb-init", "code-server", "--host", "0.0.0.0"]