Skip to content

Commit 9cb4b5c

Browse files
committed
Dockerfile: add default Entrypoint and mount data dir
Closes #170 Closes #78 Thanks @ay-b
1 parent 39a25f0 commit 9cb4b5c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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.
3030
ENV 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.
3233
CMD code-server $PWD

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
Try 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.

0 commit comments

Comments
 (0)