21 lines
538 B
Docker
21 lines
538 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 sed -i 's/^#ip/ip/' /etc/bip.conf && \
|
|
sed -i 's/^#port/port/' /etc/bip.conf
|
|
|
|
VOLUME /var/run/bip
|
|
USER bip
|
|
EXPOSE 7778
|
|
ENV HOME=/var/run/bip
|
|
CMD ["/usr/bin/bip", "-n", "-f", "/etc/bip.conf"]
|