mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
docker tweaks, re-add launch settings
ref: https://github.com/github/gitignore/pull/2705
This commit is contained in:
parent
ec78f108aa
commit
e22c615579
4 changed files with 21 additions and 4 deletions
|
|
@ -2,12 +2,11 @@ FROM microsoft/dotnet:2.2-sdk-alpine AS publish
|
|||
COPY src/FilterLists.Api /FilterLists.Api
|
||||
COPY src/FilterLists.Data /FilterLists.Data
|
||||
COPY src/FilterLists.Services /FilterLists.Services
|
||||
COPY data /data
|
||||
RUN dotnet publish FilterLists.Api/FilterLists.Api.csproj -c Release -o /out
|
||||
|
||||
FROM microsoft/dotnet:2.2-aspnetcore-runtime-alpine AS final
|
||||
FROM microsoft/dotnet:2.2-aspnetcore-runtime-alpine
|
||||
COPY --from=publish /out .
|
||||
COPY --from=publish data /data
|
||||
COPY data /data
|
||||
ENV ASPNETCORE_URLS http://+:5000
|
||||
EXPOSE 5000
|
||||
ENTRYPOINT ["dotnet", "FilterLists.Api.dll"]
|
||||
9
src/FilterLists.Api/Properties/launchSettings.json
Normal file
9
src/FilterLists.Api/Properties/launchSettings.json
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"profiles": {
|
||||
"Docker": {
|
||||
"commandName": "Docker",
|
||||
"launchBrowser": true,
|
||||
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/docs/index.html"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3,7 +3,7 @@ COPY FilterLists.Web /FilterLists.Web
|
|||
RUN apk add --update nodejs-npm \
|
||||
&& dotnet publish FilterLists.Web/FilterLists.Web.csproj -c Release -o /out
|
||||
|
||||
FROM microsoft/dotnet:2.2-aspnetcore-runtime-alpine AS final
|
||||
FROM microsoft/dotnet:2.2-aspnetcore-runtime-alpine
|
||||
COPY --from=publish /out .
|
||||
ENV ASPNETCORE_URLS http://+:5001
|
||||
EXPOSE 5001
|
||||
|
|
|
|||
9
src/FilterLists.Web/Properties/launchSettings.json
Normal file
9
src/FilterLists.Web/Properties/launchSettings.json
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"profiles": {
|
||||
"Docker": {
|
||||
"commandName": "Docker",
|
||||
"launchBrowser": true,
|
||||
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue