dorkai commited on
Commit
1ffe438
·
1 Parent(s): 6a9d094

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -14
Dockerfile CHANGED
@@ -1,15 +1,5 @@
1
  # This will start a code-server container and expose it at http://127.0.0.1:8080.
2
- # It will also mount your current directory into the container as `/home/coder/project`
3
- # and forward your UID/GID so that all file system operations occur as your user outside
4
- # the container.
5
- #
6
- # Your $HOME/.config is mounted at $HOME/.config within the container to ensure you can
7
- # easily access/modify your code-server config in $HOME/.config/code-server/config.json
8
- # outside the container.
9
- mkdir -p ~/.config
10
- docker run -it --name code-server -p 127.0.0.1:8080:8080 \
11
- -v "$HOME/.config:/home/coder/.config" \
12
- -v "$PWD:/home/coder/project" \
13
- -u "$(id -u):$(id -g)" \
14
- -e "DOCKER_USER=$USER" \
15
- codercom/code-server:latest
 
1
  # This will start a code-server container and expose it at http://127.0.0.1:8080.
2
+ git clone https://github.com/coder/coder.git
3
+ cd coder
4
+
5
+ docker-compose up