Use self-hosted canvaskit

This commit is contained in:
Pierre HUBERT 2022-03-24 16:23:41 +01:00
parent 650b6dfc4d
commit c4aa025fe3

View File

@ -10,5 +10,8 @@ mkdir image
cp -r build/web image cp -r build/web image
cp player-server/target/release/player-server image cp player-server/target/release/player-server image
echo Patch built files
sed -i 's/<\/head>/<script>window.flutterConfiguration = {canvasKitBaseUrl: "\/canvaskit\/"}<\/script><\/head>/g' image/web/index.html
echo Build Docker image echo Build Docker image
docker build image -f Dockerfile -t pierre42100/new_web_music_player docker build image -f Dockerfile -t pierre42100/new_web_music_player