add ASPNETCORE_URLS env var to dockerfiles

This commit is contained in:
Collin M. Barrett 2019-01-13 17:57:31 -06:00
parent c9862e37e4
commit b78c1d3615
2 changed files with 2 additions and 0 deletions

View file

@ -6,5 +6,6 @@ RUN dotnet publish FilterLists.Api/FilterLists.Api.csproj -c Release -o /out
FROM microsoft/dotnet:2.2-aspnetcore-runtime AS final
COPY --from=publish /out .
ENV ASPNETCORE_URLS http://+:5000
EXPOSE 5000
ENTRYPOINT ["dotnet", "FilterLists.Api.dll"]

View file

@ -6,5 +6,6 @@ RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \
FROM microsoft/dotnet:2.2-aspnetcore-runtime AS final
COPY --from=publish /out .
ENV ASPNETCORE_URLS http://+:5001
EXPOSE 5001
ENTRYPOINT ["dotnet", "FilterLists.Web.dll"]