blob: feb752280ff3d3c474f182b6f87455e86557fcc1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
FROM mcr.microsoft.com/dotnet/sdk:7.0-alpine AS build
COPY CrupestApi /CrupestApi
WORKDIR /CrupestApi
RUN dotnet publish CrupestApi/CrupestApi.csproj --configuration Release --output ./publish -r linux-x64
FROM mcr.microsoft.com/dotnet/aspnet:7.0-alpine
ENV ASPNETCORE_URLS=http://0.0.0.0:5000
ENV ASPNETCORE_FORWARDEDHEADERS_ENABLED=true
COPY --from=build /CrupestApi/publish /CrupestApi
WORKDIR /CrupestApi
VOLUME [ "/crupest-api-config.json" ]
EXPOSE 5000
ENTRYPOINT ["dotnet", "CrupestApi.dll"]
|