VS Code in the browser with Docker !
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
625 B

FROM codercom/code-server:3.12.0
USER root
COPY ./wrapper.sh /usr/local/bin/wrapper
RUN apt-get update && \
apt-get install -y docker.io docker-compose bash sudo curl openssh-server && \
apt-get purge -y needrestart && \
apt-get autoremove -y --purge && \
mkdir -p /run/sshd && \
rm -rf /var/lib/apt/lists/* && \
adduser coder docker && \
sed -i 's/env_reset/always_set_home/g' /etc/sudoers && \
curl -sSLo /usr/local/bin/dind https://raw.githubusercontent.com/jpetazzo/dind/master/wrapdocker && \
chmod +x /usr/local/bin/*
ENTRYPOINT ["/usr/local/bin/dind", "/usr/local/bin/wrapper"]