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

28 lines
745 B
Text
Raw Permalink Normal View History

2019-03-07 19:32:20 +00:00
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
2019-03-14 15:03:18 +00:00
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
2019-03-07 19:32:20 +00:00
2019-03-14 15:03:18 +00:00
RUN chown -R bip:bip /data
2019-03-07 19:32:20 +00:00
USER bip
2019-03-14 15:03:18 +00:00
VOLUME ["/data"]
2019-03-07 19:32:20 +00:00
EXPOSE 7778
2019-03-14 15:03:18 +00:00
ENV HOME=/data
ENV BIPCONF=/etc/bip.conf
CMD ["/usr/bin/bip", "-n", "-f", "$BIPCONF"]