make this an oci container, not nspawn
This commit is contained in:
parent
e41a2e81ae
commit
1d5dc44ed3
2 changed files with 40 additions and 0 deletions
21
Dockerfile
Normal file
21
Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
|||
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"]
|
Reference in a new issue