ARG server_base_image
FROM ${server_base_image}
ENV container docker
MAINTAINER info@spillbox.io

RUN yum -y update; yum clean all
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
RUN sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
RUN yum check-update -v || true

RUN yum install -y sudo 
RUN yum install -y epel-release && \ 
    yum -y install net-tools \
    nfs-utils rpcbind dbus systemd \
    initscripts jq && \
    yum -y clean all

VOLUME ["/sys/fs/cgroup"]
VOLUME ["/run"]
