another refactor :D
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
# Start from the code-server Debian base image
|
||||
FROM codercom/code-server:latest
|
||||
|
||||
USER coder
|
||||
|
||||
# Apply VS Code settings
|
||||
COPY settings.json .local/share/code-server/User/settings.json
|
||||
|
||||
# Use bash shell
|
||||
ENV SHELL=/bin/bash
|
||||
|
||||
# Install unzip + rclone (support for remote filesystem)
|
||||
RUN sudo apt-get update && sudo apt-get install unzip -y
|
||||
RUN curl https://rclone.org/install.sh | sudo bash
|
||||
|
||||
# Fix permissions for code-server
|
||||
RUN sudo chown -R coder:coder /home/coder/.local
|
||||
|
||||
# Port
|
||||
ENV PORT=8080
|
||||
|
||||
# Use our custom entrypoint script first
|
||||
COPY deploy-container-entrypoint.sh /usr/bin/deploy-container-entrypoint.sh
|
||||
ENTRYPOINT ["/usr/bin/deploy-container-entrypoint.sh"]
|
||||
@@ -6,11 +6,11 @@ An image built for deploying code-server to [railway.app](https://railway.app),
|
||||
|
||||
To launch your code-server environment, click the button below and log in with GitHub:
|
||||
|
||||
[](https://railway.app/new?template=https%3A%2F%2Fgithub.com%2Fbpmct%2Fcode-server-railway&envs=PASSWORD%2CGIT_REPO&PASSWORDDesc=Your+password+to+log+in+to+code-server+with&GIT_REPODesc=A+git+repo+to+clone+and+open+in+code-server+%28ex.+https%3A%2F%2Fgithub.com%2Fcdr%2Fdocs.git%29)
|
||||
| [](https://railway.app/new?template=https%3A%2F%2Fgithub.com%2Fbpmct%2Fcode-server-railway&envs=PASSWORD%2CGIT_REPO&PASSWORDDesc=Your+password+to+log+in+to+code-server+with&GIT_REPODesc=A+git+repo+to+clone+and+open+in+code-server+%28ex.+https%3A%2F%2Fgithub.com%2Fcdr%2Fdocs.git%29) | [](https://heroku.com/deploy?template=https://github.com/bpmct/deploy-code-server/tree/main) |
|
||||
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| For Railway, it will ask you to make a new repo to store this image, so you can add additional software to your repo's `Dockerfile` in the future. | For Heroku, we recommend [using this repo as a template](https://github.com/bpmct/code-server-railway/generate) and using the one-click deploy on your own repo to further modify your app. |
|
||||
|
||||
For Railway, it will ask you to make a new repo to store this image, so you can add additional software to your repo's `Dockerfile` in the future.
|
||||
|
||||
For Heroku, we recommend [using this repo as a template](https://github.com/bpmct/code-server-railway/generate) and using the one-click deploy on your own repo to further modify your app.
|
||||
---
|
||||
|
||||
## 💾 Persist your filesystem with `rclone`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user