Skip to content

Commit

Permalink
[FIX] bugs fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ismoilovdevml committed Feb 2, 2024
1 parent 081311d commit 1a7605c
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions API.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
WORKDIR /app
COPY . .
RUN dotnet restore "GitHub.Actions.API/GitHub.Actions.API.csproj"
WORKDIR "/app/GitHub.Actions.API"
RUN dotnet build "GitHub.Actions.API.csproj" -c Release -o /app/build
RUN dotnet publish "GitHub.Actions.API.csproj" -o /app/build -c Release

FROM build AS publish
RUN dotnet publish "GitHub.Actions.API.csproj" -c Release -o /app/publish

FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS runtime
FROM mcr.microsoft.com/dotnet/aspnet:7.0
WORKDIR /app
COPY --from=publish /app/publish .
ENV ASPNETCORE_ENVIRONMENT=Development
ENV TZ="Asia/Tashkent"
COPY --from=build-env /app/build .
ENTRYPOINT ["dotnet", "GitHub.Actions.API.dll", "--urls=http://0.0.0.0:4001"]

0 comments on commit 1a7605c

Please sign in to comment.