File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM codercom/code-server:latest
2
+
3
+ USER coder
4
+
5
+ # Apply VS Code settings
6
+ COPY settings.json .local/share/code-server/User/settings.json
7
+
8
+ # Use bash shell
9
+ ENV SHELL=/bin/bash
10
+
11
+ # Use our custom entrypoint script first
12
+ COPY railway-entrypoint.sh /usr/bin/railway-entrypoint.sh
13
+ ENTRYPOINT ["/usr/bin/railway-entrypoint.sh" ]
Original file line number Diff line number Diff line change
1
+ # Allow user to aupply a start dir, default to /home/coder/project
2
+ START_DIR=${1:-/ home/ coder/ project}
3
+
4
+ # Clone the git repo, if it exists
5
+ [ -z " ${GIT_REPO} " ] && echo " No GIT_REPO specified" ; git clone $GIT_REPO $START_DIR
6
+
7
+ # Now we can run code-server with the default entrypoint
8
+ /usr/bin/entrypoint.sh --bind-addr 0.0.0.0:8080 $START_DIR
Original file line number Diff line number Diff line change
1
+ {
2
+ "workbench.colorTheme" : " Default Dark+" ,
3
+ "git.postCommitCommand" : " sync" ,
4
+ "git.enableSmartCommit" : true ,
5
+ "git.confirmSync" : false ,
6
+ "git.autofetch" : true
7
+ }
You can’t perform that action at this time.
0 commit comments