mirror of
https://gitee.com/kennylee/docker.git
synced 2024-11-30 02:48:27 +08:00
20 lines
518 B
Docker
20 lines
518 B
Docker
|
FROM registry.cn-hangzhou.aliyuncs.com/kennylee/ubuntu
|
||
|
ENV DEBIAN_FRONTEND noninteractive
|
||
|
RUN apt-get update -qq && apt-get install -y nfs-kernel-server runit inotify-tools -qq
|
||
|
RUN mkdir -p /exports
|
||
|
|
||
|
RUN mkdir -p /etc/sv/nfs
|
||
|
ADD nfs.init /etc/sv/nfs/run
|
||
|
ADD nfs.stop /etc/sv/nfs/finish
|
||
|
|
||
|
ADD nfs_setup.sh /usr/local/bin/nfs_setup
|
||
|
|
||
|
RUN echo "nfs 2049/tcp" >> /etc/services
|
||
|
RUN echo "nfs 111/udp" >> /etc/services
|
||
|
|
||
|
VOLUME /exports
|
||
|
|
||
|
EXPOSE 111/udp 2049/tcp
|
||
|
|
||
|
ENTRYPOINT ["/usr/local/bin/nfs_setup"]
|