Skip to content

Commit

Permalink
Add Dockerfile to build packages for the Tails Linux distribution.
Browse files Browse the repository at this point in the history
  • Loading branch information
nochiel committed May 12, 2023
1 parent c569813 commit 39aaad8
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions build-tailsOS.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM debian:latest as base
ARG DEBIAN_FRONTEND=noninteractive
WORKDIR /app
COPY . source
COPY .git source/.git

RUN apt update -y
RUN apt install -y \
build-essential autogen libtool shtool \
clang llvm lld libstdc++6 libc++-dev libc++1 libc++abi1 \
git-buildpackage \
git \
coreutils binutils \
bash
WORKDIR source
FROM base
ARG DEBIAN_FRONTEND=noninteractive
SHELL ["/bin/bash", "-c"]
RUN chmod -x debian/clean
RUN git submodule update
RUN cat debian/patches/series | xargs -I{} patch -f --strip=1 -i "debian/patches/{}" || true
RUN patch -f --strip=1 -i debian/patches/bc-ur-build-tails.diff || true

# FIXME(nochiel) It would be nice if running this line compiled the packaged the files we care about.
# RUN gbp buildpackage --git-upstream-tree=master --git-debian-branch=debian/latest --git-ignore-new --git-force-create --git-submodules

0 comments on commit 39aaad8

Please sign in to comment.