-
-
Save evoliatis/ebe201593e2b9abe1e75c7c4fb18534d to your computer and use it in GitHub Desktop.
Exemple de configuration Docker simple pour visual code server
This file contains 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 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