Skip to content

Commit

Permalink
Merge pull request #204 from truenas/dockerfile-2.2
Browse files Browse the repository at this point in the history
Add Dockerfile
  • Loading branch information
themylogin authored Jan 7, 2024
2 parents 9e4b0cd + 8c28d5e commit e9363d8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
!configure.ac
!copy-builtin
!COPYRIGHT
!Dockerfile
!LICENSE
!Makefile.am
!META
Expand Down
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e9363d8

Please sign in to comment.