Skip to content

Instantly share code, notes, and snippets.

@evoliatis
Last active July 28, 2022 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evoliatis/ebe201593e2b9abe1e75c7c4fb18534d to your computer and use it in GitHub Desktop.
Save evoliatis/ebe201593e2b9abe1e75c7c4fb18534d to your computer and use it in GitHub Desktop.
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