Skip to content

Commit

Permalink
add vscode container Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaundry committed Jan 11, 2025
1 parent a6f163f commit e9528fb
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions freebsd/etc/containers/vscode/Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]

0 comments on commit e9528fb

Please sign in to comment.