16 lines
400 B
Docker
16 lines
400 B
Docker
FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS build
|
|
WORKDIR /source
|
|
|
|
COPY . .
|
|
RUN dotnet restore && \
|
|
dotnet tool restore && \
|
|
dotnet libman restore
|
|
RUN dotnet publish --property:OutputPath=/app
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0-jammy
|
|
EXPOSE 5000
|
|
WORKDIR /app
|
|
COPY --from=build /app .
|
|
ENV ASPNETCORE_ENVIRONMENT Production
|
|
ENTRYPOINT [ "./MyDarling", "--urls=http://0.0.0.0:5000" ]
|