File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 11Dockerfile
2- doc /
2+ build
3+ deployment
4+ doc
5+ .git
36.github
47.gitignore
8+ .node-version
59.travis.yml
610LICENSE
711README.md
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ function build-code-server() {
9999 log " Installing remote dependencies"
100100 cd " ${vscodeSourcePath} /remote"
101101 yarn --production --force --build-from-source
102- cp -r " ${vscodeSourcePath} /remote/node_modules" " ${codeServerBuildPath} "
102+ mv " ${vscodeSourcePath} /remote/node_modules" " ${codeServerBuildPath} "
103103
104104 # Only keep the production dependencies.
105105 cd " ${codeServerBuildPath} /out/vs/server"
Original file line number Diff line number Diff line change @@ -122,10 +122,12 @@ export const open = async (url: string): Promise<void> => {
122122 */
123123export const unpackExecutables = async ( ) : Promise < void > => {
124124 const rgPath = ( rg as any ) . binaryRgPath ;
125- if ( rgPath ) {
125+ const destination = path . join ( tmpdir , path . basename ( rgPath || "" ) ) ;
126+ if ( rgPath && ! ( await util . promisify ( fs . exists ) ( destination ) ) ) {
126127 await mkdirp ( tmpdir ) ;
127- const destination = path . join ( tmpdir , path . basename ( rgPath ) ) ;
128- await util . promisify ( fs . copyFile ) ( rgPath , destination ) ;
128+ // TODO: I'm not sure why but copyFile doesn't work in the Docker build.
129+ // await util.promisify(fs.copyFile)(rgPath, destination);
130+ await util . promisify ( fs . writeFile ) ( destination , await util . promisify ( fs . readFile ) ( rgPath ) ) ;
129131 await util . promisify ( fs . chmod ) ( destination , "755" ) ;
130132 }
131133} ;
You can’t perform that action at this time.
0 commit comments