various docker tweaks

This commit is contained in:
Collin M. Barrett 2019-05-04 09:17:20 -05:00
parent 516b08fe01
commit d83d7f19e1
3 changed files with 16 additions and 3 deletions

View file

@ -6,11 +6,14 @@
<ProjectGuid>b94a5bcd-3be3-4fe4-ae48-adcf904a22a4</ProjectGuid>
<DockerLaunchAction>LaunchBrowser</DockerLaunchAction>
<DockerServiceUrl>{Scheme}://localhost:{ServicePort}</DockerServiceUrl>
<DockerServiceName>filterlists.api</DockerServiceName>
<DockerServiceName>filterlists</DockerServiceName>
</PropertyGroup>
<ItemGroup>
<None Include="docker-compose.prod.yml" />
<None Include="docker-compose.data.tests.yml" />
<None Include="docker-compose.vs.debug.yml">
<DependentUpon>docker-compose.yml</DependentUpon>
</None>
<None Include="docker-compose.yml" />
<None Include=".dockerignore" />
</ItemGroup>

View file

@ -0,0 +1,10 @@
version: "3.7"
services:
api:
build:
target: build
web:
build:
target: build

View file

@ -1,11 +1,11 @@
# Context: .
# Command: docker build -f src/FilterLists.Web/Dockerfile .
# prep runtime
# init base
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2-alpine as runtime
ENTRYPOINT ["dotnet", "FilterLists.Web.dll"]
ENV ASPNETCORE_URLS "http://*:5000"
EXPOSE 5000
ENTRYPOINT ["dotnet", "FilterLists.Web.dll"]
# init build
FROM mcr.microsoft.com/dotnet/core/sdk:2.2-alpine AS build