27 lines
745 B
Docker
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"]
|