1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-28 17:51:24 +00:00
dockerfiles/nfs/arm/Dockerfile
2019-12-16 09:10:27 +08:00

23 lines
790 B
Docker

#
# Dockerfile for nfs-server-arm
#
FROM arm32v7/alpine:3
RUN apk --update --no-cache add bash nfs-utils && \
\
# remove the default config files
rm -v /etc/idmapd.conf /etc/exports
# http://wiki.linux-nfs.org/wiki/index.php/Nfsv4_configuration
RUN mkdir -p /var/lib/nfs/rpc_pipefs && \
mkdir -p /var/lib/nfs/v4recovery && \
echo "rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs defaults 0 0" >> /etc/fstab && \
echo "nfsd /proc/fs/nfsd nfsd defaults 0 0" >> /etc/fstab
EXPOSE 2049
# setup entrypoint
COPY ./entrypoint.sh /usr/local/bin
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]