From cc29fb03046bd0f87cd95f1b9b536ac7f4eda095 Mon Sep 17 00:00:00 2001 From: andy Date: Fri, 11 Feb 2022 23:24:47 +0000 Subject: [PATCH] added docker skeleton --- Selector.CLI/Dockerfile | 7 +++++++ Selector.Web/Dockerfile | 7 +++++++ docker-compose.yml | 12 ++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 Selector.CLI/Dockerfile create mode 100644 Selector.Web/Dockerfile create mode 100644 docker-compose.yml 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