summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2021-01-11 11:39:11 +0100
committerlouiz’ <louiz@louiz.org>2021-01-11 11:39:11 +0100
commit692f5a4e6619269f60fabb1201a5d6e837c65480 (patch)
treef38d6747c6e6b590274675e5c8bcf2ece7da7342 /docker
parentfdb3e739b0f1969e83250d98bda27b938a207f81 (diff)
downloadbiboumi-692f5a4e6619269f60fabb1201a5d6e837c65480.tar.gz
biboumi-692f5a4e6619269f60fabb1201a5d6e837c65480.tar.bz2
biboumi-692f5a4e6619269f60fabb1201a5d6e837c65480.tar.xz
biboumi-692f5a4e6619269f60fabb1201a5d6e837c65480.zip
docker: use botan package from alpine instead of building from sources
Diffstat (limited to 'docker')
-rw-r--r--docker/biboumi/alpine/Dockerfile13
1 files changed, 2 insertions, 11 deletions
diff --git a/docker/biboumi/alpine/Dockerfile b/docker/biboumi/alpine/Dockerfile
index 89c7223..872cec6 100644
--- a/docker/biboumi/alpine/Dockerfile
+++ b/docker/biboumi/alpine/Dockerfile
@@ -8,13 +8,8 @@
FROM docker.io/alpine:latest as builder
RUN apk add --no-cache --virtual .build cmake expat-dev g++ git libidn-dev \
- make postgresql-dev python2 sqlite-dev udns-dev util-linux-dev
+ make postgresql-dev python2 sqlite-dev udns-dev util-linux-dev botan-dev
-RUN git clone https://github.com/randombit/botan.git && \
- cd botan && \
- ./configure.py --prefix=/usr && \
- make -j8 && \
- make install
RUN git clone git://git.louiz.org/biboumi && \
mkdir ./biboumi/build && \
@@ -33,11 +28,7 @@ RUN git clone git://git.louiz.org/biboumi && \
FROM docker.io/alpine:latest
RUN apk add --no-cache libidn libpq libstdc++ libuuid postgresql-libs \
- sqlite-libs udns expat ca-certificates
-
-COPY --from=builder /usr/bin/botan /usr/bin/botan
-COPY --from=builder /usr/lib/libbotan* /usr/lib/
-COPY --from=builder /usr/lib/pkgconfig/botan-2.pc /usr/lib/pkgconfig/botan-2.pc
+ sqlite-libs udns expat ca-certificates botan
COPY --from=builder /etc/biboumi /etc/biboumi
COPY --from=builder /usr/bin/biboumi /usr/bin/biboumi