commit=$(cat /app/openvscode-server/product.json | awk '/commit/{print $4;exit}' FS='[""]') | |
sed -i "s/#commit#/$commit/" nginx.conf | |
nginx -c $PWD/nginx.conf | |
set +e | |
if [[ ! -z "$REPOSITORY" ]]; then | |
git clone $REPOSITORY | |
fi | |
set -e | |
git config --global http.postBuffer 524288000 | |
echo "Starting VSCode Server..." | |
exec /app/openvscode-server/bin/openvscode-server --host 0.0.0.0 --port 5050 --without-connection-token \"${@}\" -- | |