0
0
RhSolutions-Api/Dockerfile

12 lines
272 B
Docker
Raw Normal View History

2024-08-26 13:51:05 +03:00
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
2024-01-14 15:25:12 +03:00
WORKDIR /source
COPY . .
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"]