Skip to content

Instantly share code, notes, and snippets.

@jrideout
Created March 5, 2018 06:05
Show Gist options
  • Save jrideout/1c29f0c31da42a9cb0c66a1df23cfad3 to your computer and use it in GitHub Desktop.
Save jrideout/1c29f0c31da42a9cb0c66a1df23cfad3 to your computer and use it in GitHub Desktop.
FROM ubuntu:16.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update
RUN apt -y install software-properties-common
RUN add-apt-repository -y ppa:milter-manager/ppa
RUN apt update
RUN apt -y install milter-manager
WORKDIR /src
RUN ldd /usr/bin/milter-test-server | tr -s '[:blank:]' '\n' | grep '^/' | \
xargs -I % sh -c 'mkdir -p $(dirname deps%); cp % deps%;'
FROM scratch
COPY --from=0 /src/deps /
COPY --from=0 /usr/bin/milter-test-server /milter-test-server
ENTRYPOINT ["/milter-test-server"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment