mirror of
https://github.com/alexhopeoconnor/dnsmasq-webui.git
synced 2026-10-03 22:12:00 +10:00
- Add real-time app logs via SignalR (log level, category filters) - Add filters modal with restore defaults; sentinel for empty arrays - Add client settings: max lines and auto-scroll per log panel - Improve NavMenu: align settings + hamburger, smaller mobile logo - LogsService, LogsHub, LoggingController, AppLogsLoggerProvider - Persist log level and filters to appsettings.Overrides.json
34 lines
1.2 KiB
Docker
34 lines
1.2 KiB
Docker
# App + dnsmasq in one container. Use this image for running dnsmasq (and the UI) in Docker.
|
|
# Both run as root; file permissions work because config dirs are in the container.
|
|
# For dnsmasq on the host, use the self-contained publish (scripts/publish-self-contained.sh)
|
|
# or run the app on the host; see DnsmasqOptions XML doc for permissions and ReloadCommand scope.
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base
|
|
WORKDIR /app
|
|
EXPOSE 8080
|
|
EXPOSE 8081
|
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
|
WORKDIR /src
|
|
COPY ["src/DnsmasqWebUI/DnsmasqWebUI.csproj", "src/DnsmasqWebUI/"]
|
|
RUN dotnet restore "src/DnsmasqWebUI/DnsmasqWebUI.csproj"
|
|
COPY . .
|
|
WORKDIR "/src/src/DnsmasqWebUI"
|
|
RUN dotnet build "DnsmasqWebUI.csproj" -c Release -o /app/build
|
|
|
|
FROM build AS publish
|
|
RUN dotnet publish "DnsmasqWebUI.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
|
|
|
FROM base AS app
|
|
WORKDIR /app
|
|
ENV ASPNETCORE_URLS=http://+:8080
|
|
COPY --from=publish /app/publish .
|
|
|
|
FROM app AS final
|
|
RUN apt-get update && apt-get install -y --no-install-recommends dnsmasq procps \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
COPY scripts/entrypoint.sh .
|
|
COPY scripts/dnsmasq-status.sh .
|
|
RUN chmod +x entrypoint.sh dnsmasq-status.sh
|
|
ENTRYPOINT ["./entrypoint.sh"]
|