diff options
author | Serghei Cebotari <serghei@cebotari.ru> | 2023-11-14 14:14:42 +0300 |
---|---|---|
committer | Serghei Cebotari <serghei@cebotari.ru> | 2023-11-14 14:14:42 +0300 |
commit | 8035577277e299c9d26afdf8e49c2316055fd800 (patch) | |
tree | 5a9d7ee4c07756d3a455aba8614515afa91a5ff7 /Dockerfile | |
parent | 4857c066300255312d1e1736f2a03c256c6a9501 (diff) |
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8d0f9c8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build +WORKDIR /app +COPY . ./ +RUN dotnet restore +RUN dotnet publish -c Release -o out + +FROM mcr.microsoft.com/dotnet/aspnet:7.0 +EXPOSE 5000 +WORKDIR /app +COPY --from=build /app/out . +ENV ASPNETCORE_ENVIRONMENT Production +ENTRYPOINT [ "dotnet", "MindBoxApi.dll", "--urls=http://0.0.0.0:5000" ]
\ No newline at end of file |