File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 1- FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
1+ FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
22WORKDIR /app
33COPY . .
4- RUN dotnet restore "GitHub.Actions.API/GitHub.Actions.API.csproj"
54WORKDIR "/app/GitHub.Actions.API"
6- RUN dotnet build "GitHub.Actions.API.csproj" -c Release - o /app/build
5+ RUN dotnet publish "GitHub.Actions.API.csproj" -o /app/build -c Release
76
8- FROM build AS publish
9- RUN dotnet publish "GitHub.Actions.API.csproj" -c Release -o /app/publish
10-
11- FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS runtime
7+ FROM mcr.microsoft.com/dotnet/aspnet:7.0
128WORKDIR /app
13- COPY --from=publish /app/publish .
9+ ENV ASPNETCORE_ENVIRONMENT=Development
10+ ENV TZ="Asia/Tashkent"
11+ COPY --from=build-env /app/build .
1412ENTRYPOINT ["dotnet" , "GitHub.Actions.API.dll" , "--urls=http://0.0.0.0:4001" ]
You can’t perform that action at this time.
0 commit comments