Spaces:
Sleeping
Sleeping
Add VSCode server
Browse files- Dockerfile +8 -0
Dockerfile
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM node:20-slim
|
| 2 |
+
RUN apt-get update && apt-get install -y curl tar && \
|
| 3 |
+
curl -fL "https://update.code.visualstudio.com/latest/server-linux-x64-web/stable" -o /tmp/vscode.tar.gz && \
|
| 4 |
+
mkdir -p /vscode && \
|
| 5 |
+
tar -xzf /tmp/vscode.tar.gz -C /vscode --strip-components=1 && \
|
| 6 |
+
rm /tmp/vscode.tar.gz
|
| 7 |
+
EXPOSE 7860
|
| 8 |
+
CMD ["node", "/vscode/out/server-main.js", "--host", "0.0.0.0", "--port", "7860", "--without-connection-token", "--accept-server-license-terms", "--disable-workspace-trust"]
|