add dockerfile
This commit is contained in:
parent
49082564d6
commit
ac434f6634
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@ -0,0 +1,15 @@
|
||||
# Stage 1
|
||||
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build
|
||||
WORKDIR /build
|
||||
ENV ASPNETCORE_URLS=http://*:2121
|
||||
COPY . .
|
||||
RUN dotnet restore
|
||||
RUN dotnet publish -c Release -o /app
|
||||
# Stage 2
|
||||
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS final
|
||||
WORKDIR /app
|
||||
COPY --from=build /app .
|
||||
|
||||
EXPOSE 2121
|
||||
|
||||
ENTRYPOINT ["dotnet", "EvoCalculator.Core.dll"]
|
||||
Loading…
x
Reference in New Issue
Block a user