generated from BlockchainCommons/secure-template
-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Dockerfile to build packages for the Tails Linux distribution.
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |