Skip to content

Instantly share code, notes, and snippets.

@evoliatis
Last active Jul 28, 2022
Embed
What would you like to do?
Exemple de configuration Docker simple pour visual code server
FROM ubuntu:focal
ENV DEBIAN_FRONTEND noninteractive
RUN groupadd -g 1000 vscode ; useradd -u 1000 -g 1000 -m -s /bin/bash -d /home/work vscode ; \
apt-get update ; apt-get dist-upgrade -y ; \
curl -fsSL https://code-server.dev/install.sh | sh
EXPOSE 80
VOLUME [ "/home/work/.config/code-server", "/home/work/.local/share/code-server", "/home/work/documents" ]
USER vscode
ENTRYPOINT [ "/usr/bin/code-server" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment