We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f30bd44 commit 9954449Copy full SHA for 9954449
Dockerfile
@@ -8,6 +8,9 @@ COPY settings.json .local/share/code-server/User/settings.json
8
# Use bash shell
9
ENV SHELL=/bin/bash
10
11
+# Fix permissions
12
+RUN sudo chown -R coder:coder /home/coder/.local
13
+
14
# Use our custom entrypoint script first
15
COPY railway-entrypoint.sh /usr/bin/railway-entrypoint.sh
16
ENTRYPOINT ["/usr/bin/railway-entrypoint.sh"]
railway-entrypoint.sh
@@ -6,8 +6,5 @@ START_DIR=${1:-/home/coder/project}
6
# Clone the git repo, if it exists
7
[ -z "${GIT_REPO}" ] && echo "No GIT_REPO specified"; git clone $GIT_REPO $START_DIR
-# Fix permissions
-chown -R coder:coder /home/coder/.local
-
# Now we can run code-server with the default entrypoint
/usr/bin/entrypoint.sh --bind-addr 0.0.0.0:8080 $START_DIR
0 commit comments