Created
March 5, 2018 06:05
-
-
Save jrideout/1c29f0c31da42a9cb0c66a1df23cfad3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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