summaryrefslogtreecommitdiff
path: root/docker/biboumi/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'docker/biboumi/Dockerfile')
-rw-r--r--docker/biboumi/Dockerfile35
1 files changed, 17 insertions, 18 deletions
diff --git a/docker/biboumi/Dockerfile b/docker/biboumi/Dockerfile
index 7c8d78d..d27421b 100644
--- a/docker/biboumi/Dockerfile
+++ b/docker/biboumi/Dockerfile
@@ -1,26 +1,25 @@
# This Dockerfile creates a docker image running biboumi
-FROM docker.io/fedora:latest
+FROM docker.io/alpine:latest
-RUN dnf --refresh install -y\
- gcc-c++\
+RUN apk add --no-cache\
+ g++\
cmake\
make\
- udns-devel\
- sqlite-devel\
- libuuid-devel\
- expat-devel\
- libidn-devel\
- systemd-devel\
+ udns-dev\
+ sqlite-dev\
+ libuuid\
+ util-linux-dev\
+ expat-dev\
+ libidn-dev\
git\
- python\
- && dnf clean all
+ python2
# Install botan
-RUN git clone https://github.com/randombit/botan.git && cd botan && ./configure.py --prefix=/usr && make -j8 && make install && ldconfig && rm -rf /botan
+RUN git clone https://github.com/randombit/botan.git && cd botan && ./configure.py --prefix=/usr && make -j8 && make install && rm -rf /botan
# Install litesql
-RUN git clone git://git.louiz.org/litesql && mkdir /litesql/build && cd /litesql/build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr && make -j8 && cd /litesql/build && make install && ldconfig && rm -rf /litesql
+RUN git clone git://git.louiz.org/litesql && mkdir /litesql/build && cd /litesql/build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr && make -j8 && cd /litesql/build && make install && rm -rf /litesql
# Install biboumi
RUN git clone git://git.louiz.org/biboumi && mkdir ./biboumi/build && cd ./biboumi/build &&\
@@ -29,17 +28,17 @@ RUN git clone git://git.louiz.org/biboumi && mkdir ./biboumi/build && cd ./bibou
-DWITH_BOTAN=1\
-DWITH_LITESQL=1\
-DWITH_LIBIDN=1\
- -DWITH_SYSTEMD=1\
&& make -j8 && make install && rm -rf /biboumi
-RUN useradd biboumi
+RUN adduser biboumi -D -h /home/biboumi
RUN mkdir /var/lib/biboumi
+RUN chown -R biboumi:biboumi /var/lib/biboumi
COPY ./biboumi.cfg /etc/biboumi/biboumi.cfg
RUN chown -R biboumi:biboumi /etc/biboumi
-COPY ./entrypoint.sh /entrypoint.sh
-RUN chmod 755 /entrypoint.sh
+WORKDIR /home/biboumi
+USER biboumi
-ENTRYPOINT ["/entrypoint.sh"]
+CMD ["/usr/bin/biboumi", "/etc/biboumi/biboumi.cfg"]