File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -28,5 +28,6 @@ RUN apt-get install -y locales && \
2828# We unfortunately cannot use update-locale because docker will not use the env variables
2929# configured in /etc/default/locale so we need to set it manually.
3030ENV LANG=en_US.UTF-8
31- # Unfortunately `.` does not work with code-server.
31+ ENTRYPOINT code-server
32+ # Unfortunately `.` does not work with code-server so we use shell form.
3233CMD code-server $PWD
Original file line number Diff line number Diff line change 99
1010Try it out:
1111``` bash
12- docker run -p 127.0.0.1:8443:8443 -v " ${PWD} :/root/project" codercom/ code-server code-server --allow-http --no-auth
12+ docker run -p 127.0.0.1:8443:8443 -v " ${PWD} :/root/project" -v ~ /. code-server:/root/.code-server codercom/ code-server --allow-http --no-auth
1313```
1414
1515- Code on your Chromebook, tablet, and laptop with a consistent dev environment.
Original file line number Diff line number Diff line change @@ -41,10 +41,7 @@ const handlePackages = async (dir: string): Promise<void> => {
4141 const pkgDir = join ( dir , pkg ) ;
4242 const pkgJsonPath = join ( pkgDir , "package.json" ) ;
4343 if ( existsSync ( pkgJsonPath ) ) {
44- const ip = doInstall ( pkg , pkgDir ) ;
45- if ( os . platform ( ) === "win32" ) {
46- await ip ;
47- }
44+ const ip = await doInstall ( pkg , pkgDir ) ;
4845 }
4946 }
5047} ;
You can’t perform that action at this time.
0 commit comments