aboutsummaryrefslogtreecommitdiff
path: root/docker/code-server
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-11-29 13:01:03 +0800
committercrupest <crupest@outlook.com>2022-11-29 13:01:03 +0800
commite15843655faf6b02605d5c34940197efb4121a95 (patch)
tree158af4bd5ce2bfc272c9441050b494be3f7f980d /docker/code-server
parent7897d842d12efcc6f08e374ebf830d41fc92bf7b (diff)
downloadcrupest-e15843655faf6b02605d5c34940197efb4121a95.tar.gz
crupest-e15843655faf6b02605d5c34940197efb4121a95.tar.bz2
crupest-e15843655faf6b02605d5c34940197efb4121a95.zip
Try to fix code-server.
Diffstat (limited to 'docker/code-server')
-rw-r--r--docker/code-server/Dockerfile8
1 files changed, 8 insertions, 0 deletions
diff --git a/docker/code-server/Dockerfile b/docker/code-server/Dockerfile
new file mode 100644
index 0000000..d7984d6
--- /dev/null
+++ b/docker/code-server/Dockerfile
@@ -0,0 +1,8 @@
+FROM ubuntu:latest
+
+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 [ "/usr/bin/code-server", "--bind-addr", "0.0.0.0:8080" ]