如何将Azure``应用服务文件夹''安装到Docker容器?

时间:2018-09-18 10:24:14

标签: azure docker

我在本地启动容器 docker run -it -p 80:5000 --name myApp -v P:\myPath\myData:/myData

如何从azure挂载应用程序服务文件夹?

App Service Folders

1 个答案:

答案 0 :(得分:0)

I had to adapt the Dockerfile with the following line:

# this map's the azure App Service folder to the container.
RUN ln -s /home/myData /myDataOnTheContainer

And the WEBSITES_ENABLE_APP_SERVICE_STORAGE setting in the application settings must be set to true.