This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
bip-box/Dockerfile

27 lines
745 B
Docker

ARG IMAGE=fedora
ARG IMAGE_TAG=29
FROM ${IMAGE}:${IMAGE_TAG}
LABEL com.hashbangbash.image=${IMAGE}:${IMAGE_TAG}@${DIGEST}
LABEL com.hashbangbash.image.repo=${IMAGE}
LABEL com.hashbangbash.image.tag=${IMAGE_TAG}
LABEL com.hashbangbash.image.digest=${DIGEST}
RUN dnf update -y --refresh && \
dnf install -y bip && \
dnf clean all
RUN mkdir -p /bip && \
sed -i 's/^#ip/ip/' /etc/bip.conf && \
sed -i 's/^#port/port/' /etc/bip.conf && \
sed -i 's|^log_root.*$|log_root = "/bip/logs";|' /etc/bip.conf && \
sed -i 's|^pid_file.*$|pid_file="/bip/bip.pid";|' /etc/bip.conf
RUN chown -R bip:bip /data
USER bip
VOLUME ["/data"]
EXPOSE 7778
ENV HOME=/data
ENV BIPCONF=/etc/bip.conf
CMD ["/usr/bin/bip", "-n", "-f", "$BIPCONF"]