nfs-krb/Dockerfile.ubuntu

24 lines
535 B
Docker

FROM ubuntu:latest
ARG DEBUG
ENV DEBIAN_FRONTEND=noninteractive
ENV DEBUG=${DEBUG}
WORKDIR /root
RUN apt-get update
RUN apt-get install -y nfs-kernel-server krb5-kdc krb5-admin-server nfs-common bash
RUN if [ -n "${DEBUG}" ]; then \
apt-get install iproute2 iputils-ping net-tools; \
fi
COPY ./common.sh .
COPY ./entrypoint-ubuntu.sh .
COPY ./init.sh .
RUN chmod +x ./entrypoint-ubuntu.sh && chmod +x ./init.sh && chmod +x ./common.sh
RUN ls
EXPOSE 2049 88 749 750 111 666 892
CMD ["./init.sh", "ubuntu"]