Add Dockerfile
Signed-off-by: Vladimir Vinogradenko <vladimirv@ixsystems.com>
This commit is contained in:
parent
9e4b0cd985
commit
8c28d5e198
|
@ -52,6 +52,7 @@
|
||||||
!configure.ac
|
!configure.ac
|
||||||
!copy-builtin
|
!copy-builtin
|
||||||
!COPYRIGHT
|
!COPYRIGHT
|
||||||
|
!Dockerfile
|
||||||
!LICENSE
|
!LICENSE
|
||||||
!Makefile.am
|
!Makefile.am
|
||||||
!META
|
!META
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
FROM debian:bullseye-slim
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
|
RUN apt-get update
|
||||||
|
|
||||||
|
RUN apt-get install -y \
|
||||||
|
debhelper-compat \
|
||||||
|
devscripts
|
||||||
|
|
||||||
|
ENV WORK_DIR /zfs_app/zfs
|
||||||
|
WORKDIR ${WORK_DIR}
|
||||||
|
|
||||||
|
ADD . ${WORK_DIR}/
|
||||||
|
|
||||||
|
RUN cp -a contrib/truenas debian
|
||||||
|
RUN mk-build-deps --build-dep
|
||||||
|
RUN apt install -y ./*.deb
|
||||||
|
RUN dch -b -M --force-distribution --distribution bullseye-truenas-unstable "Tagged from ixsystems/zfs CI"
|
||||||
|
RUN debuild -us -uc -b
|
||||||
|
RUN apt-get install -y ../*.deb
|
Loading…
Reference in New Issue