2024-01-14 15:25:12 +03:00
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS build
|
|
|
|
WORKDIR /source
|
|
|
|
COPY . .
|
2024-02-09 16:48:11 +03:00
|
|
|
RUN dotnet restore
|
2024-01-14 23:12:20 +03:00
|
|
|
RUN dotnet publish --property:OutputPath=/app
|
2022-12-14 09:53:10 +03:00
|
|
|
|
2024-08-26 13:50:42 +03:00
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine
|
|
|
|
EXPOSE 8080
|
2022-12-14 09:53:10 +03:00
|
|
|
WORKDIR /app
|
2024-01-14 15:25:12 +03:00
|
|
|
COPY --from=build /app .
|
2024-08-26 13:50:42 +03:00
|
|
|
USER $APP_UID
|
|
|
|
|
|
|
|
ENTRYPOINT ["./RhSolutions.Api"]
|