# our chosen base image
-FROM debian:10 AS builder
+FROM debian:10-slim AS builder
# TODO: make sure /source looks roughly the same from git or tar
dpkg-deb -I equivs-dummy_1.0_all.deb && cp equivs-dummy_1.0_all.deb /build/tmp/
# Runtime
-FROM debian:10
+FROM debian:10-slim
# Reusable layer for base update - Should be cached from builder
RUN apt-get update && apt-get -y dist-upgrade && apt-get clean
# Ensure python3 is present (for startup script), and sqlite3 (for db schema), and tini (for signal management)
-RUN apt-get install -y python3 sqlite3 tini && apt-get clean
+RUN apt-get install -y python3 sqlite3 tini libcap2-bin && apt-get clean
# Output from builder
COPY --from=builder /build /
# our chosen base image
-FROM debian:10 AS builder
+FROM debian:10-slim AS builder
# TODO: make sure /source looks roughly the same from git or tar
# Runtime
-FROM debian:10
+FROM debian:10-slim
# Reusable layer for base update - Should be cached from builder
RUN apt-get update && apt-get -y dist-upgrade && apt-get clean
# Ensure python3 is present (for startup script), and python3-atomicwrites (for backend management), and tini (for signal management)
-RUN apt-get install -y python3 python3-atomicwrites tini && apt-get clean
+RUN apt-get install -y python3 python3-atomicwrites tini libcap2-bin && apt-get clean
# Output from builder
COPY --from=builder /build /
# dig a www.example.com @0 -p 1053
# Builder
-FROM debian:10 AS builder
+FROM debian:10-slim AS builder
# Reusable layer for base update
RUN apt-get update && apt-get -y dist-upgrade && apt-get clean
dpkg-deb -I equivs-dummy_1.0_all.deb && cp equivs-dummy_1.0_all.deb /build/tmp/
# Runtime
-FROM debian:10
+FROM debian:10-slim
# Reusable layer for base update - Should be cached from builder
RUN apt-get update && apt-get -y dist-upgrade && apt-get clean
# Ensure python3 is present (for startup script), and tini for signal management
-RUN apt-get install -y python3 tini && apt-get clean
+RUN apt-get install -y python3 tini libcap2-bin && apt-get clean
# Executables from builder
COPY --from=builder /build /