Skip to content

Commit 9d70311

Browse files
committed
initial commit
0 parents  commit 9d70311

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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"]

railway-entrypoint.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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

settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"workbench.colorTheme": "Default Dark+",
3+
"git.postCommitCommand": "sync",
4+
"git.enableSmartCommit": true,
5+
"git.confirmSync": false,
6+
"git.autofetch": true
7+
}

0 commit comments

Comments
 (0)