remove dnsmasq; what was i on

This commit is contained in:
gigirassy
2026-03-30 17:12:06 +02:00
parent 75648fd431
commit 0ad369f67e
+6 -27
View File
@@ -1,5 +1,3 @@
# syntax=docker/dockerfile:1.4
FROM --platform=$BUILDPLATFORM chimeralinux/chimera:latest AS builder
ARG TARGETOS
ARG TARGETARCH
@@ -18,36 +16,17 @@ RUN CGO_ENABLED=0 \
-o /pinata ./main.go
FROM chimeralinux/chimera:latest
RUN apk add --no-cache ca-certificates dnsmasq
FROM kgrv/mini:tini AS runtime
COPY --from=builder /pinata /pinata
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
RUN printf '%s\n' \
'#!/bin/sh' \
'set -eu' \
'' \
'dnsmasq --no-daemon \' \
' --port=5353 \' \
' --listen-address=127.0.0.1 \' \
' --cache-size=10000 \' \
' --neg-ttl=60 \' \
' --resolv-file=/run/dnsmasq.resolv \' \
' --log-facility=- &' \
'' \
'sleep 0.2' \
'' \
'exec /pinata' \
> /entrypoint.sh && chmod +x /entrypoint.sh
USER 65532
EXPOSE 8080
ENV GOMEMLIMIT=8MiB \
GOGC=20 \
GODEBUG=netdns=go
ENTRYPOINT ["/entrypoint.sh"]
USER mini
EXPOSE 8080
ENTRYPOINT ["tini", "--", "/pinata"]