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
commitde64c8f99c15ea7a52975629a01bb0705927cb92 (patch)
tree158af4bd5ce2bfc272c9441050b494be3f7f980d /docker/code-server
parentaf38b4d04edc3aba35af7f3fce03cbc6ab9ce62f (diff)
downloadcrupest-de64c8f99c15ea7a52975629a01bb0705927cb92.tar.gz
crupest-de64c8f99c15ea7a52975629a01bb0705927cb92.tar.bz2
crupest-de64c8f99c15ea7a52975629a01bb0705927cb92.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" ]