diff --git a/Selector.CLI/Dockerfile b/Selector.CLI/Dockerfile new file mode 100644 index 0000000..821a10f --- /dev/null +++ b/Selector.CLI/Dockerfile @@ -0,0 +1,7 @@ +FROM mcr.microsoft.com/dotnet/runtime:6.0 +RUN dotnet publish Selector.CLI.csproj -c Release +COPY bin/Release/net6.0/publish/ App/ +WORKDIR /App +ENV DOTNET_EnableDiagnostics=0 +ENTRYPOINT ["dotnet", "Selector.CLI.dll"] + diff --git a/Selector.Web/Dockerfile b/Selector.Web/Dockerfile new file mode 100644 index 0000000..c1843b8 --- /dev/null +++ b/Selector.Web/Dockerfile @@ -0,0 +1,7 @@ +FROM mcr.microsoft.com/dotnet/aspnet:6.0 +EXPOSE 80 +RUN dotnet publish Selector.Web.csproj -c Release +COPY bin/Release/net6.0/publish/ App/ +WORKDIR /App +ENV DOTNET_EnableDiagnostics=0 +ENTRYPOINT ["dotnet", "Selector.Web.dll"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..e7863a0 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,12 @@ +version: "3.9" # optional since v1.27.0 +services: + web: + build: Selector.Web/ + ports: + - "8080:80" + cli: + build: Selector.CLI/ + redis: + image: redis:alpine + database: + image: postgres