From e9528fb477d8b94ca0316bb7fd663c972b6e189a Mon Sep 17 00:00:00 2001 From: Jed Laundry Date: Sat, 11 Jan 2025 20:58:47 +0000 Subject: [PATCH] add vscode container Dockerfile --- freebsd/etc/containers/vscode/Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 freebsd/etc/containers/vscode/Dockerfile diff --git a/freebsd/etc/containers/vscode/Dockerfile b/freebsd/etc/containers/vscode/Dockerfile new file mode 100644 index 0000000..c54aea5 --- /dev/null +++ b/freebsd/etc/containers/vscode/Dockerfile @@ -0,0 +1,16 @@ +FROM ubuntu:latest + +# fix for error "E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Start. Current value: 25165824. (man 5 apt.conf)" +RUN echo 'APT::Cache-Start "100000000";' >> /etc/apt/apt.conf.d/70debconf + +RUN apt update && \ + apt install curl git -y && \ + apt clean all && \ + curl -sL "https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-x64" --output /tmp/vscode-cli.tar.gz && \ + tar -xf /tmp/vscode-cli.tar.gz -C /usr/bin && \ + rm /tmp/vscode-cli.tar.gz && \ + mkdir /src + +VOLUME /src + +CMD [ "code", "tunnel", "--accept-server-license-terms", "--no-sleep" ]