## voir https://github.com/tiredofit/docker-gcds/blob/main/Dockerfile
cat <<EOF>/etc/apt/apt.conf.d/99-cache
Acquire::http {
Proxy "http://apt-cacher.infra.leolagrange.org:3142";
};
EOF
apt update
apt dist-upgrade -y
apt install -y xrdp xorgxrdp locales wget ca-certificates lwm libxtst6 libxi6
dpkg-reconfigure locales
useradd -m -s /usr/bin/bash gcds
cat << EOF > /home/gcds/.xsession
/home/gcds/GoogleCloudDirSync/config-manager &
lwm
EOF
passwd gcds
su - gcds
export https_proxy=http://squid:3128
export http_proxy=http://squid:3128
GCDS_VERSION=5.0.22
wget https://dl.google.com/dirsync/Google/GoogleCloudDirSync_linux_64bit_${GCDS_VERSION//./_}.sh -O /tmp/install.sh
bash /tmp/install.sh
rm /tmp/install.sh