fix permissions
This commit is contained in:
@@ -8,6 +8,9 @@ COPY settings.json .local/share/code-server/User/settings.json
|
||||
# Use bash shell
|
||||
ENV SHELL=/bin/bash
|
||||
|
||||
# Fix permissions
|
||||
RUN sudo chown -R coder:coder /home/coder/.local
|
||||
|
||||
# Use our custom entrypoint script first
|
||||
COPY railway-entrypoint.sh /usr/bin/railway-entrypoint.sh
|
||||
ENTRYPOINT ["/usr/bin/railway-entrypoint.sh"]
|
||||
@@ -6,8 +6,5 @@ START_DIR=${1:-/home/coder/project}
|
||||
# Clone the git repo, if it exists
|
||||
[ -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
|
||||
Reference in New Issue
Block a user