added docker skeleton
This commit is contained in:
parent
e5d93aa27d
commit
cc29fb0304
7
Selector.CLI/Dockerfile
Normal file
7
Selector.CLI/Dockerfile
Normal 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
7
Selector.Web/Dockerfile
Normal 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
12
docker-compose.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user