File tree 3 files changed +11
-5
lines changed
3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
1
Dockerfile
2
- doc /
2
+ build
3
+ deployment
4
+ doc
5
+ .git
3
6
.github
4
7
.gitignore
8
+ .node-version
5
9
.travis.yml
6
10
LICENSE
7
11
README.md
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ function build-code-server() {
99
99
log " Installing remote dependencies"
100
100
cd " ${vscodeSourcePath} /remote"
101
101
yarn --production --force --build-from-source
102
- cp -r " ${vscodeSourcePath} /remote/node_modules" " ${codeServerBuildPath} "
102
+ mv " ${vscodeSourcePath} /remote/node_modules" " ${codeServerBuildPath} "
103
103
104
104
# Only keep the production dependencies.
105
105
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> => {
122
122
*/
123
123
export const unpackExecutables = async ( ) : Promise < void > => {
124
124
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 ) ) ) {
126
127
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 ) ) ;
129
131
await util . promisify ( fs . chmod ) ( destination , "755" ) ;
130
132
}
131
133
} ;
You can’t perform that action at this time.
0 commit comments