aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-11-29 14:21:52 +0800
committercrupest <crupest@outlook.com>2022-11-29 14:21:52 +0800
commite06466997d39f8f7c3ac1cabe7b9c335a27cde4a (patch)
tree08c5a1fc360825becceb9d93417968d6728bbb87
parentefb847df2b755aaf6ba2cc9801ca20acb64fdc3f (diff)
downloadcrupest-e06466997d39f8f7c3ac1cabe7b9c335a27cde4a.tar.gz
crupest-e06466997d39f8f7c3ac1cabe7b9c335a27cde4a.tar.bz2
crupest-e06466997d39f8f7c3ac1cabe7b9c335a27cde4a.zip
Try to fix code-server. v6.0
-rw-r--r--docker/code-server/Dockerfile5
-rw-r--r--docker/crupest-nginx/sites/www/index.html2
2 files changed, 3 insertions, 4 deletions
diff --git a/docker/code-server/Dockerfile b/docker/code-server/Dockerfile
index 17c5c1b..42d295e 100644
--- a/docker/code-server/Dockerfile
+++ b/docker/code-server/Dockerfile
@@ -1,8 +1,7 @@
-FROM node:16
+FROM debian:latest
-RUN npm config set python python3 && npm install --global code-server --unsafe-perm
+RUN curl -fsSL https://code-server.dev/install.sh | sh
ENV CODE_SERVER_CONFIG="/data/code-server-config.yaml"
-WORKDIR /root
EXPOSE 8080
VOLUME [ "/data" ]
ENTRYPOINT [ "code-server", "--bind-addr", "0.0.0.0:8080" ]
diff --git a/docker/crupest-nginx/sites/www/index.html b/docker/crupest-nginx/sites/www/index.html
index cc98a54..0497915 100644
--- a/docker/crupest-nginx/sites/www/index.html
+++ b/docker/crupest-nginx/sites/www/index.html
@@ -24,7 +24,7 @@
<p>Public:</p>
<ul>
<li><a href="https://blog.crupest.life" target="_blank">https://blog.crupest.life</a>: My blogs in Chinese with <a
- href="https://github.com/halo-dev/halo" target="_blank">halo</a>.</li>
+ href="https://gohugo.io" target="_blank">hugo</a>.</li>
<li><a href="https://timeline.crupest.life" target="_blank">https://timeline.crupest.life</a>: My microblogs with
my own web app <a href="https://github.com/crupest/Timeline">Timeline</a>.</li>
<li><a href="https://github.crupest.life" target="_blank">https://github.crupest.life</a>: Redirect to my github