Вот мой Dockerfile:
Код: Выделить всё
FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "./Euro_WeatherForecast.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "Euro_WeatherForecast.dll"]
Код: Выделить всё
version: '3.4'
services:
euro_weatherforecast:
image: ${DOCKER_REGISTRY-}euroweatherforecast
build:
context: .
dockerfile: Euro_WeatherForecast/Dockerfile
Код: Выделить всё
"ConnectionStrings": {
"AppDbContext": "server=sqlserver;port=8080;Data Source=TUF1\\SQLEXPRESS;Initial Catalog=Euronext_WeatherForecast;Integrated Security=True;Encrypt=False"
Подробнее здесь: https://stackoverflow.com/questions/781 ... ith-docker
Мобильная версия