Skip to content

Commit 9954449

Browse files
committed
fix permissions
1 parent f30bd44 commit 9954449

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ COPY settings.json .local/share/code-server/User/settings.json
88
# Use bash shell
99
ENV SHELL=/bin/bash
1010

11+
# Fix permissions
12+
RUN sudo chown -R coder:coder /home/coder/.local
13+
1114
# Use our custom entrypoint script first
1215
COPY railway-entrypoint.sh /usr/bin/railway-entrypoint.sh
1316
ENTRYPOINT ["/usr/bin/railway-entrypoint.sh"]

railway-entrypoint.sh

-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,5 @@ START_DIR=${1:-/home/coder/project}
66
# Clone the git repo, if it exists
77
[ -z "${GIT_REPO}" ] && echo "No GIT_REPO specified"; git clone $GIT_REPO $START_DIR
88

9-
# Fix permissions
10-
chown -R coder:coder /home/coder/.local
11-
129
# Now we can run code-server with the default entrypoint
1310
/usr/bin/entrypoint.sh --bind-addr 0.0.0.0:8080 $START_DIR

0 commit comments

Comments
 (0)