0
0
MyDarling/Dockerfile

16 lines
400 B
Docker
Raw Normal View History

2024-01-29 16:32:38 +03:00
FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS build
WORKDIR /source
2023-03-10 07:43:00 +03:00
2024-01-29 16:32:38 +03:00
COPY . .
RUN dotnet restore && \
dotnet tool restore && \
dotnet libman restore
RUN dotnet publish --property:OutputPath=/app
2023-02-02 08:17:17 +03:00
2024-01-29 16:32:38 +03:00
FROM mcr.microsoft.com/dotnet/aspnet:8.0-jammy
2023-02-02 08:17:17 +03:00
EXPOSE 5000
WORKDIR /app
2024-01-29 16:32:38 +03:00
COPY --from=build /app .
2023-02-02 08:17:17 +03:00
ENV ASPNETCORE_ENVIRONMENT Production
2024-01-29 16:32:38 +03:00
ENTRYPOINT [ "./MyDarling", "--urls=http://0.0.0.0:5000" ]