Skip to content

Commit 1a7605c

Browse files
committed
[FIX] bugs fixed
1 parent 081311d commit 1a7605c

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

API.Dockerfile

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
1+
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
22
WORKDIR /app
33
COPY . .
4-
RUN dotnet restore "GitHub.Actions.API/GitHub.Actions.API.csproj"
54
WORKDIR "/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
128
WORKDIR /app
13-
COPY --from=publish /app/publish .
9+
ENV ASPNETCORE_ENVIRONMENT=Development
10+
ENV TZ="Asia/Tashkent"
11+
COPY --from=build-env /app/build .
1412
ENTRYPOINT ["dotnet", "GitHub.Actions.API.dll", "--urls=http://0.0.0.0:4001"]

0 commit comments

Comments
 (0)