+3
-3
@@ -1,4 +1,4 @@
|
||||
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS publish
|
||||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
|
||||
|
||||
ADD ./src /src
|
||||
WORKDIR /src
|
||||
@@ -10,7 +10,7 @@ RUN dotnet test RgDevBot.sln -c Release
|
||||
RUN dotnet publish RgDevBot.sln -c Release -o /app
|
||||
|
||||
# Final image
|
||||
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app .
|
||||
COPY --from=build /app .
|
||||
ENTRYPOINT ["dotnet", "RgDevBot.dll"]
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace RgDevBot
|
||||
|
||||
public async Task Parse()
|
||||
{
|
||||
var url = "https://rg-dev.ru/api/news/?type=news";
|
||||
var url = "https://rg-dev.ru/api/news/?format=json&type=news";
|
||||
var content = await Get(url);
|
||||
|
||||
var news = JsonConvert.DeserializeObject<NewsListResponse>(content);
|
||||
|
||||
Reference in New Issue
Block a user