added docker skeleton

This commit is contained in:
andy 2022-02-11 23:24:47 +00:00
parent e5d93aa27d
commit cc29fb0304
3 changed files with 26 additions and 0 deletions

7
Selector.CLI/Dockerfile Normal file
View File

@ -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"]

7
Selector.Web/Dockerfile Normal file
View File

@ -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"]

12
docker-compose.yml Normal file
View File

@ -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