32 lines
737 B
Docker
32 lines
737 B
Docker
FROM alpine:latest
|
|
|
|
ARG DEBUG
|
|
ENV DEBUG=${DEBUG}
|
|
|
|
VOLUME /exports
|
|
WORKDIR /root
|
|
RUN mkdir -p /run/openrc
|
|
RUN touch /run/openrc/softlevel
|
|
RUN apk add --no-cache --update openrc
|
|
RUN apk add --no-cache --update --verbose tzdata bash krb5-server nfs-utils krb5-server-openrc krb5 syslog-ng chrony
|
|
|
|
RUN if [ -n "${DEBUG}" ]; then \
|
|
apk add --no-cache --update iproute2 procps; \
|
|
fi
|
|
|
|
RUN rc-update add syslog-ng boot
|
|
RUN rc-update add krb5kdc default
|
|
RUN rc-update add krb5kadmind default
|
|
RUN rc-update add nfs default
|
|
|
|
COPY ./common.sh .
|
|
COPY ./entrypoint.sh .
|
|
COPY ./init.sh .
|
|
RUN chmod +x ./entrypoint.sh && chmod +x ./init.sh && chmod +x ./common.sh
|
|
|
|
RUN ls
|
|
|
|
|
|
|
|
EXPOSE 2049 88 749 750 111
|
|
CMD ["./init.sh"] |