Last active
October 11, 2020 13:00
-
-
Save ahmetozer/4f5a9501723a357903278bb852074dee to your computer and use it in GitHub Desktop.
vscode web Docker File
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:latest as dapt | |
RUN apt update | |
FROM dapt as dockerclient | |
RUN apt install docker.io -y | |
FROM dapt as vscode | |
RUN apt install curl net-tools bash-completion -y && \ | |
curl -fsSL https://code-server.dev/install.sh | sh ;\ | |
apt autoremove --purge -y;\ | |
apt clean ;\ | |
find /var/lib/apt/lists/ -maxdepth 1 -type f -print0 | xargs -0 rm ;\ | |
echo ". /usr/share/bash-completion/bash_completion" >> /etc/bash.bashrc ;\ | |
curl https://raw.githubusercontent.com/docker/docker-ce/master/components/cli/contrib/completion/bash/docker -o /usr/share/bash-completion/completions/docker | |
COPY --from=dockerclient /usr/bin/docker /usr/bin/docker | |
ENTRYPOINT ["/usr/bin/code-server", "--cert", "--disable-telemetry"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment