vscode / Dockerfile
3v324v23's picture
Add VSCode server
f30fdef
Raw History Blame Contribute Delete
494 Bytes
FROM node:20-slim
RUN apt-get update && apt-get install -y curl tar && \
curl -fL "https://update.code.visualstudio.com/latest/server-linux-x64-web/stable" -o /tmp/vscode.tar.gz && \
mkdir -p /vscode && \
tar -xzf /tmp/vscode.tar.gz -C /vscode --strip-components=1 && \
rm /tmp/vscode.tar.gz
EXPOSE 7860
CMD ["node", "/vscode/out/server-main.js", "--host", "0.0.0.0", "--port", "7860", "--without-connection-token", "--accept-server-license-terms", "--disable-workspace-trust"]