1
1
Fork 0
mirror of https://github.com/goreleaser/nfpm synced 2024-04-30 12:05:11 +02:00
nfpm/testdata/acceptance/deb.breaks.dockerfile
Dj Gilcrease c4ae30d749
feat: try to clean up and simplify the file adding interface (#255)
* feat: cleanup and simplify the file adding interface

* docs: update the configuration docs to focus on the new contents format for specifying files

* docs: correct spelling

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2020-12-15 13:47:00 -03:00

14 lines
329 B
Docker

FROM ubuntu
ARG package
COPY dummy.deb /tmp/dummy.deb
COPY ${package} /tmp/foo.deb
# install dummy package
RUN dpkg -i /tmp/dummy.deb
# make sure foo can't be installed
RUN dpkg -i /tmp/foo.deb 2>&1 | grep "foo breaks dummy"
# make sure foo can be installed if dummy is not installed
RUN dpkg -r dummy
RUN dpkg -i /tmp/foo.deb