我正在docker中使用卷将更改与Express应用程序同步,但是更改不可见。这是我的配置
public IActionResult Index (SomeViewModel viewModel)
{
var model = mapper.map<SomeViewModel,SomeModel>(viewModel);
var searchResultModel = DoSearch(model);
var searchResultViewModel = mapper.map<SearchResultModel,SearchResultViewModel>(searchResultModel);
return RedirectToAction("SearchResult",searchResultViewModel);
}
docker文件
version: '3.0'
services:
redis-server:
image: 'redis'
papp:
build: .
ports:
- 3000:3000
volumes:
- ./:/usr/src/app
working_dir: /usr/src/app