mirror of
https://github.com/goreleaser/nfpm
synced 2024-04-30 12:05:11 +02:00
17 lines
503 B
Docker
17 lines
503 B
Docker
FROM alpine
|
|
ARG package
|
|
COPY ${package} /tmp/foo.apk
|
|
RUN apk add -vvv --allow-untrusted /tmp/foo.apk
|
|
RUN test -e /usr/local/bin/fake
|
|
RUN test -f /etc/foo/whatever.conf
|
|
RUN test ! -f /tmp/preinstall-proof
|
|
RUN test -f /tmp/postinstall-proof
|
|
RUN test ! -f /tmp/preremove-proof
|
|
RUN test ! -f /tmp/postremove-proof
|
|
RUN echo wat >> /etc/foo/whatever.conf
|
|
RUN apk del foo
|
|
RUN test -f /etc/foo/whatever.conf
|
|
RUN test ! -f /usr/local/bin/fake
|
|
RUN test -f /tmp/preremove-proof
|
|
RUN test ! -f /tmp/postremove-proof
|