summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorSerghei Cebotari <serghei@cebotari.ru>2023-10-11 22:34:42 +0300
committerSerghei Cebotari <serghei@cebotari.ru>2023-10-11 22:34:42 +0300
commitf4188b4269678279e9622f9e8c2b9e2d8a2798d2 (patch)
treeea579be5acc42f2e04cd5dc66312fd6fe8a55da6 /Dockerfile
parent6b9c0dfffc3ecfcfb642f696250aee8e4ed6031b (diff)
Move dockerfile
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..93139c8
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,13 @@
+FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
+WORKDIR /app
+
+COPY . ./
+RUN dotnet restore
+RUN dotnet publish -c Release -o out
+
+FROM mcr.microsoft.com/dotnet/aspnet:6.0
+EXPOSE 5000
+WORKDIR /app
+COPY --from=build /app/out .
+ENV ASPNETCORE_ENVIRONMENT Production
+ENTRYPOINT [ "dotnet", "RhSolutions.Api.dll", "--urls=http://0.0.0.0:5000" ] \ No newline at end of file