env variable for the config
This commit is contained in:
parent
b5e8e23274
commit
f07bd2f27f
1 changed files with 11 additions and 5 deletions
16
Dockerfile
16
Dockerfile
|
@ -11,11 +11,17 @@ LABEL com.hashbangbash.image.digest=${DIGEST}
|
||||||
RUN dnf update -y --refresh && \
|
RUN dnf update -y --refresh && \
|
||||||
dnf install -y bip && \
|
dnf install -y bip && \
|
||||||
dnf clean all
|
dnf clean all
|
||||||
RUN sed -i 's/^#ip/ip/' /etc/bip.conf && \
|
RUN mkdir -p /bip && \
|
||||||
sed -i 's/^#port/port/' /etc/bip.conf
|
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
|
||||||
|
|
||||||
VOLUME ["/var/run/bip"]
|
RUN chown -R bip:bip /data
|
||||||
USER bip
|
USER bip
|
||||||
|
VOLUME ["/data"]
|
||||||
EXPOSE 7778
|
EXPOSE 7778
|
||||||
ENV HOME=/var/run/bip
|
ENV HOME=/data
|
||||||
CMD ["/usr/bin/bip", "-n", "-f", "/etc/bip.conf"]
|
ENV BIPCONF=/etc/bip.conf
|
||||||
|
|
||||||
|
CMD ["/usr/bin/bip", "-n", "-f", "$BIPCONF"]
|
||||||
|
|
Reference in a new issue