Add Dockerfile

Signed-off-by: Vladimir Vinogradenko <vladimirv@ixsystems.com>
This commit is contained in:
themylogin 2024-01-05 14:24:08 +01:00
parent 9e4b0cd985
commit 8c28d5e198
2 changed files with 22 additions and 0 deletions

1
.gitignore vendored
View File

@ -52,6 +52,7 @@
!configure.ac
!copy-builtin
!COPYRIGHT
!Dockerfile
!LICENSE
!Makefile.am
!META

21
Dockerfile Normal file
View File

@ -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