简体   繁体   中英

Azure App service Linux install dependencies

I have an API written in .NET 7 that must run on a Linux service app. I made a startup script to install external lib.

#!/bin/bash

apt-get update && \

apt-get install -y libc6 -f -o APT::Immediate-Configure=0 && \

apt-get install -y \ libicu-dev \ libharfbuzz0b \ libfontconfig1 \ libfreetype6

dotnet Api.dll

My problem is that my script is never executed. It is always ignored. Before when my app service was in .NET 5, it worked correctly.

I call my script like this. It's in/home/site/wwwroot

在此处输入图像描述

Is your script called run.sh ?

If so: there is a typo in the Startup Command. It says run;sh instead of run.sh

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM